dify1.0 comfyui plugin upload image error #89

Closed
opened 2026-02-16 11:19:43 -05:00 by yindo · 1 comment
Owner

Originally created by @sunhong1019 on GitHub (Mar 4, 2025).

I updated Dify to version 1.0 today and reinstalled the ComfyUI plugin. However, when I use the uploaded image to generate another image in the workflow, an http error occurs. There was no such problem in the previous version. Could you please tell me what I should do?

error:

Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnsupportedProtocol","message":"Request URL is missing an 'http://' or 'https://' protocol."}

Originally created by @sunhong1019 on GitHub (Mar 4, 2025). I updated Dify to version 1.0 today and reinstalled the ComfyUI plugin. However, when I use the uploaded image to generate another image in the workflow, an http error occurs. There was no such problem in the previous version. Could you please tell me what I should do? error: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnsupportedProtocol","message":"Request URL is missing an 'http://' or 'https://' protocol."}
yindo added the bug label 2026-02-16 11:19:43 -05:00
yindo closed this issue 2026-02-16 11:19:43 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 4, 2025):

@sunhong1019 你好! 我是Dosu,一个可以帮助你解决错误、回答问题并成为贡献者的机器人。在等待人类维护者的期间,我会尽力帮助你。

In Dify version 1.0, the "图片上传" (image upload) functionality was replaced with a more comprehensive "文件上传" (file upload) feature. To resolve the issue you're facing with the ComfyUI plugin, ensure that you have enabled the "文件上传" feature and selected only the "图片" (image) type. Additionally, make sure the Vision function is enabled in the LLM node and that the sys.files variable is correctly configured, although it's recommended to use custom file variables for future-proofing [1][2].

Regarding the HTTP error, ensure that the image URLs you are using include the correct protocol, either "http://" or "https://". This is necessary to avoid the "UnsupportedProtocol" error you're encountering. If the URLs are missing these protocols, you will need to update them accordingly.

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 (Mar 4, 2025): <!-- Greeting --> @sunhong1019 你好! 我是[Dosu](https://dosu.dev),一个可以帮助你解决错误、回答问题并成为贡献者的机器人。在等待人类维护者的期间,我会尽力帮助你。 <!-- Answer --> In Dify version 1.0, the "图片上传" (image upload) functionality was replaced with a more comprehensive "文件上传" (file upload) feature. To resolve the issue you're facing with the ComfyUI plugin, ensure that you have enabled the "文件上传" feature and selected only the "图片" (image) type. Additionally, make sure the Vision function is enabled in the LLM node and that the `sys.files` variable is correctly configured, although it's recommended to use custom file variables for future-proofing <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/llms.txt)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/llms.txt)</sup>. Regarding the HTTP error, ensure that the image URLs you are using include the correct protocol, either "http://" or "https://". This is necessary to avoid the "UnsupportedProtocol" error you're encountering. If the URLs are missing these protocols, you will need to update them accordingly. <!-- 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/053e5e79-5479-47a8-b7c6-ee411877859b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/053e5e79-5479-47a8-b7c6-ee411877859b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/053e5e79-5479-47a8-b7c6-ee411877859b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/053e5e79-5479-47a8-b7c6-ee411877859b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/053e5e79-5479-47a8-b7c6-ee411877859b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/053e5e79-5479-47a8-b7c6-ee411877859b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/053e5e79-5479-47a8-b7c6-ee411877859b?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-docs-archived#89