Skip to content

[Bug]: dify file upload failed: Request URL is missing an 'http://' or 'https://' protocol. #2079

@SoHuDrgon

Description

@SoHuDrgon

Runtime environment

Docker

Exception

@sliverp

我上传文件后langbot日志:

[03-25 15:05:16.046] process.py (39) - [INFO] : Processing request from person_1037005728 (2): [File]test.docx
[03-25 15:05:16.104] difysvapi.py (153) - [WARNING] : dify file upload failed: Request URL is missing an 'http://' or 'https://' protocol.
[03-25 15:05:16.805] chat.py (135) - [INFO] : Conversation(2) Response: Call tool: 177353985...
[03-25 15:05:16.826] chat.py (135) - [INFO] : Conversation(2) Response: Call tool: 177373259...
[03-25 15:05:17.093] chat.py (135) - [INFO] : Conversation(2) Response: assistant: ...

然后我在网页界面对话调试里面选择流式旁边的图片上传按钮,里面不支持 文件上传

Image

,我的langbot的dify配置:

Image 基础URL配置了https的。我的dify没有收到文件,日志如下:
2026-03-25 06:58:30.481 INFO [MainThread] [strategy.py:161]  - Task tasks.app_generate.workflow_execute_task.workflow_based_app_execution_task[7e6930f2-7704-4461-a927-7b5666d71351] received
2026-03-25 06:58:30.484 INFO [Dummy-24260] [workflow_execute_task.py:261] 5b893eb93ff05212aa020af088438bf3 - workflow_based_app_execution_task run with params: app_id='a72ace3c-b2b1-4ec9-b8bf-ea4bdbce0ff5' workflow_id='be79e637-d977-4690-8ce0-dbb19de9b715' tenant_id='70010632-46e2-470e-b717-aac4d2f82a5a' app_mode=<AppMode.WORKFLOW: 'workflow'> user=_EndUser(TYPE=<_UserType.END_USER: 'end_user'>, end_user_id='d663446e-4dbb-48fa-9175-25f4b158238b') args={'inputs': {'langbot_user_message_text': 'When the file content is readable, please read the content of this file. When the file is an image, describe the content of this image.', 'langbot_session_id': 'person_1037005728', 'langbot_conversation_id': 'a8066189-7643-4dd7-897b-107de729d519', 'langbot_msg_create_time': 1774421906, '_pipeline_bound_plugins': None, '_pipeline_bound_mcp_servers': None, '_monitoring_bot_name': 'ShanZhiAsia_Bot', '_monitoring_pipeline_name': 'DifyWorkFLow', '_monitoring_message_id': 'b5e3079a-1a75-4852-aeea-ee2fd201960f', 'launcher_type': 'person', 'launcher_id': 1037005728, 'sender_id': 1037005728, 'session_id': 'person_1037005728', 'conversation_id': 'a8066189-7643-4dd7-897b-107de729d519', 'msg_create_time': 1774421906, 'group_name': '', 'sender_name': 'oces', 'user_message_text': '', '_knowledge_base_uuids': []}, 'files': [], 'response_mode': 'streaming'} invoke_from=<InvokeFrom.SERVICE_API: 'service-api'> streaming=True call_depth=0 root_node_id=None workflow_run_id='28b6e34c-0fc3-4a73-b474-12eb2ca3b955'
2026-03-25 06:58:30.749 INFO [GraphWorker-0] [_client.py:1038] 5b893eb93ff05212aa020af088438bf3 - HTTP Request: POST http://sandbox:8194/v1/sandbox/run "HTTP/1.1 200 OK"
2026-03-25 06:58:30.852 INFO [Dummy-24260] [trace.py:128] 5b893eb93ff05212aa020af088438bf3 - Task tasks.app_generate.workflow_execute_task.workflow_based_app_execution_task[7e6930f2-7704-4461-a927-7b5666d71351] succeeded in 0.3690957073122263s: None
2026-03-25 06:58:32.311 INFO [MainThread] [strategy.py:161]  - Task schedule.workflow_schedule_task.poll_workflow_schedules[9c5c6bdf-7779-4f8a-86ae-e876486b0866] received
2026-03-25 06:58:32.364 INFO [Dummy-24263] [trace.py:128] 259cb45cd8115a04b143da583283c5a1 - Task schedule.workflow_schedule_task.poll_workflow_schedules[9c5c6bdf-7779-4f8a-86ae-e876486b0866] succeeded in 0.05171323008835316s: None

麻烦修复一下问题

Reproduction steps

No response

Enabled plugins

No response

Metadata

Metadata

Labels

bug?Bug或Bug修复相关 / maybe a bugm: Tools工具(ToolUse、内容函数)相关 / Function Calling or tools managementpd: Need reproducingpending: 需要测试以复现的issue,若您遇到相同问题,请提供更多的有价值的信息 / Please add more info as you can for us to reproduce

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions