failed on attempt 4: Request URL is missing an 'http://' or 'https://' protocol #8315

Closed
opened 2026-02-21 18:25:02 -05:00 by yindo · 1 comment
Owner

Originally created by @liuyao02 on GitHub (Feb 17, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Dify 0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After updating to version 0.15.3, I encountered an error when interacting with LLM using a paste file URL in WebApp:

Image
2025-02-14 09:38:01.190 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 1: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-14 09:38:01.761 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 2: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-14 09:38:02.832 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 3: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-14 09:38:04.909 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 4: Request URL is missing an 'http://' or 'https://' protocol.

✔️ Expected Behavior

The program should run normally

Actual Behavior

Image
2025-02-14 09:37:45.425 INFO [Dummy-1] [_client.py:1038] - HTTP Request: HEAD https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/2025_01_21_11_52_04-20250121115351.jpg?auth_key=1737431631-0-0-ea2a843c1ac4b6340726a171bc75e5312e3fb876575ba47d1457ba578f6d54fb "HTTP/1.1 200 OK"
2025-02-14 09:37:45.602 INFO [Dummy-1] [_client.py:1038] - HTTP Request: GET https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/2025_01_21_11_52_04-20250121115351.jpg?auth_key=1737431631-0-0-ea2a843c1ac4b6340726a171bc75e5312e3fb876575ba47d1457ba578f6d54fb "HTTP/1.1 200 OK"
2025-02-14 09:38:01.190 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 1: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-14 09:38:01.761 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 2: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-14 09:38:02.832 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 3: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-14 09:38:04.909 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 4: Request URL is missing an 'http://' or 'https://' protocol.
2025-02-17 01:53:48.017 INFO [Dummy-3] [_client.py:1038] - HTTP Request: HEAD https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/70afc092fbc3fded81c77e34568e6b57_exif-20250214154443.jpg?auth_key=1739519090-0-0-3f9b59797fd3b0f36f75e8529e76f8bd03af277c168d8a094f4fc05d8d749cfc&x-image-process=image/resize,p_70,m_lfit,w_1280 "HTTP/1.1 200 OK"
2025-02-17 01:53:48.208 INFO [Dummy-3] [_client.py:1038] - HTTP Request: GET https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/70afc092fbc3fded81c77e34568e6b57_exif-20250214154443.jpg?auth_key=1739519090-0-0-3f9b59797fd3b0f36f75e8529e76f8bd03af277c168d8a094f4fc05d8d749cfc&x-image-process=image/resize,p_70,m_lfit,w_1280 "HTTP/1.1 200 OK"
2025-02-17 01:53:52.122 WARNING [Dummy-5] [ssrf_proxy.py:62] - Request to URL /files/18fef9d8-ad5d-484f-91f0-389cef3c86f5/file-preview?timestamp=1739757228&nonce=5a59710b8d8e12fb557eedcd64d665f9&sign=oIbVP4_71HyzRHgM2MOEHLJVjGbLZP4tuNUEv_OR5II= failed on attempt 1: Request URL is missing an 'http://' or 'https://' protocol.

Originally created by @liuyao02 on GitHub (Feb 17, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version Dify 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After updating to version 0.15.3, I encountered an error when interacting with LLM using a paste file URL in WebApp: ![Image](https://github.com/user-attachments/assets/857de7f8-1117-4a27-9511-6f20754d5fc7) 2025-02-14 09:38:01.190 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 1: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-14 09:38:01.761 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 2: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-14 09:38:02.832 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 3: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-14 09:38:04.909 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 4: Request URL is missing an 'http://' or 'https://' protocol. ### ✔️ Expected Behavior The program should run normally ### ❌ Actual Behavior ![Image](https://github.com/user-attachments/assets/22bf94a4-229d-410d-a85f-80c9f4fbff55) 2025-02-14 09:37:45.425 INFO [Dummy-1] [_client.py:1038] - HTTP Request: HEAD https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/2025_01_21_11_52_04-20250121115351.jpg?auth_key=1737431631-0-0-ea2a843c1ac4b6340726a171bc75e5312e3fb876575ba47d1457ba578f6d54fb "HTTP/1.1 200 OK" 2025-02-14 09:37:45.602 INFO [Dummy-1] [_client.py:1038] - HTTP Request: GET https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/2025_01_21_11_52_04-20250121115351.jpg?auth_key=1737431631-0-0-ea2a843c1ac4b6340726a171bc75e5312e3fb876575ba47d1457ba578f6d54fb "HTTP/1.1 200 OK" 2025-02-14 09:38:01.190 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 1: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-14 09:38:01.761 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 2: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-14 09:38:02.832 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 3: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-14 09:38:04.909 WARNING [Dummy-2] [ssrf_proxy.py:62] - Request to URL /files/71ed5a0a-a80a-4007-b4e9-868d8382011d/file-preview?timestamp=1739525865&nonce=15b262ff4518654aa569c5077ea9e802&sign=DaJTk5i_lUDQiIhQ3vdrcx0yik3uMHo8kCWYRGa_q0k= failed on attempt 4: Request URL is missing an 'http://' or 'https://' protocol. 2025-02-17 01:53:48.017 INFO [Dummy-3] [_client.py:1038] - HTTP Request: HEAD https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/70afc092fbc3fded81c77e34568e6b57_exif-20250214154443.jpg?auth_key=1739519090-0-0-3f9b59797fd3b0f36f75e8529e76f8bd03af277c168d8a094f4fc05d8d749cfc&x-image-process=image/resize,p_70,m_lfit,w_1280 "HTTP/1.1 200 OK" 2025-02-17 01:53:48.208 INFO [Dummy-3] [_client.py:1038] - HTTP Request: GET https://private-tmsvx.vx56.com/prod/vxtms/cloudStorage/70afc092fbc3fded81c77e34568e6b57_exif-20250214154443.jpg?auth_key=1739519090-0-0-3f9b59797fd3b0f36f75e8529e76f8bd03af277c168d8a094f4fc05d8d749cfc&x-image-process=image/resize,p_70,m_lfit,w_1280 "HTTP/1.1 200 OK" 2025-02-17 01:53:52.122 WARNING [Dummy-5] [ssrf_proxy.py:62] - Request to URL /files/18fef9d8-ad5d-484f-91f0-389cef3c86f5/file-preview?timestamp=1739757228&nonce=5a59710b8d8e12fb557eedcd64d665f9&sign=oIbVP4_71HyzRHgM2MOEHLJVjGbLZP4tuNUEv_OR5II= failed on attempt 1: Request URL is missing an 'http://' or 'https://' protocol.
yindo added the 🐞 bug label 2026-02-21 18:25:02 -05:00
yindo closed this issue 2026-02-21 18:25:02 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 17, 2025):

To resolve the error "Request URL is missing an 'http://' or 'https://' protocol" in Dify 0.15.3, ensure that all URL-related environment variables in your .env file are correctly set with the appropriate protocol (http:// or https://). Specifically, check the following variables:

  • CONSOLE_API_URL
  • CONSOLE_WEB_URL
  • SERVICE_API_URL
  • APP_API_URL
  • APP_WEB_URL
  • FILES_URL

Each of these variables should be set to a valid URL that includes the protocol. For example:

CONSOLE_API_URL=https://api.console.dify.ai
CONSOLE_WEB_URL=https://console.dify.ai
SERVICE_API_URL=https://api.dify.ai
APP_API_URL=https://api.app.dify.ai
APP_WEB_URL=https://app.dify.ai
FILES_URL=https://files.dify.ai

If any of these variables are left empty, they default to the same domain, which might not include the protocol, leading to the error. Ensure that all necessary URLs are explicitly defined with the correct protocol [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 17, 2025): <!-- Answer --> To resolve the error "Request URL is missing an 'http://' or 'https://' protocol" in Dify 0.15.3, ensure that all URL-related environment variables in your `.env` file are correctly set with the appropriate protocol (`http://` or `https://`). Specifically, check the following variables: - `CONSOLE_API_URL` - `CONSOLE_WEB_URL` - `SERVICE_API_URL` - `APP_API_URL` - `APP_WEB_URL` - `FILES_URL` Each of these variables should be set to a valid URL that includes the protocol. For example: ```env CONSOLE_API_URL=https://api.console.dify.ai CONSOLE_WEB_URL=https://console.dify.ai SERVICE_API_URL=https://api.dify.ai APP_API_URL=https://api.app.dify.ai APP_WEB_URL=https://app.dify.ai FILES_URL=https://files.dify.ai ``` If any of these variables are left empty, they default to the same domain, which might not include the protocol, leading to the error. Ensure that all necessary URLs are explicitly defined with the correct protocol <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/.env.example)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f7da3458-fe6b-4b61-b760-5745e0633cd7?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8315