ComfyUI Plugin - Workflow ERROR #41

Closed
opened 2026-02-16 10:17:50 -05:00 by yindo · 11 comments
Owner

Originally created by @Andy-Zyu on GitHub (Mar 5, 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 Dify issues & Dify Official Plugins, 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

1.0.0

Plugin version

ComfyUI v0.0.4

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Use text2Image to run directly. But using a custom workflow will cause the following error:
Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnsupportedProtocol","message":"Request URL is missing an 'http://' or 'https://' protocol."}

Image

✔️ Error log

No response

Originally created by @Andy-Zyu on GitHub (Mar 5, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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 1.0.0 ### Plugin version ComfyUI v0.0.4 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Use text2Image to run directly. But using a custom workflow will cause the following error: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"UnsupportedProtocol","message":"Request URL is missing an 'http://' or 'https://' protocol."} ![Image](https://github.com/user-attachments/assets/b634f6c3-3d3b-4a1e-bbcf-39b43ff16311) ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:17:50 -05:00
yindo closed this issue 2026-02-16 10:17:50 -05:00
Author
Owner

@xiaowuzicode commented on GitHub (Mar 18, 2025):

same question

@xiaowuzicode commented on GitHub (Mar 18, 2025): same question
Author
Owner

@gozq commented on GitHub (Mar 19, 2025):

I had the same problem after uploading a custom plugin, but everything worked fine when I debugged it before packaging.

I have tried previous versions and they all have this problem:
1.0.0
1.0.1
1.1.0

@gozq commented on GitHub (Mar 19, 2025): I had the same problem after uploading a custom plugin, but everything worked fine when I debugged it before packaging. I have tried previous versions and they all have this problem: 1.0.0 1.0.1 1.1.0
Author
Owner

@sunxiaoyu12 commented on GitHub (Mar 20, 2025):

same problem,have u solved this question?

@sunxiaoyu12 commented on GitHub (Mar 20, 2025): same problem,have u solved this question?
Author
Owner

@hibernate2011 commented on GitHub (Mar 20, 2025):

Try to set FILES_URL to your local base url in env file,same error solved

@hibernate2011 commented on GitHub (Mar 20, 2025): Try to set FILES_URL to your local base url in env file,same error solved
Author
Owner

@sunxiaoyu12 commented on GitHub (Mar 20, 2025):

Try to set FILES_URL to your local base url in env file,same error solved

@hibernate2011 My PDF parsing service and Dify are deployed in two different Docker containers on the same server. Now I have connected the PDF parsing service to Dify. When I upload a file in the Dify chatflow, this problem occurs. How should I configure FILES_URL?

@sunxiaoyu12 commented on GitHub (Mar 20, 2025): > Try to set FILES_URL to your local base url in env file,same error solved @hibernate2011 My PDF parsing service and Dify are deployed in two different Docker containers on the same server. Now I have connected the PDF parsing service to Dify. When I upload a file in the Dify chatflow, this problem occurs. How should I configure FILES_URL?
Author
Owner

@hibernate2011 commented on GitHub (Mar 20, 2025):

Try to set FILES_URL to your local base url in env file,same error solved

@hibernate2011 My PDF parsing service and Dify are deployed in two different Docker containers on the same server. Now I have connected the PDF parsing service to Dify. When I upload a file in the Dify chatflow, this problem occurs. How should I configure FILES_URL?

set dify docker container, solve this error first, you can checkout the env description in .env.example

@hibernate2011 commented on GitHub (Mar 20, 2025): > > Try to set FILES_URL to your local base url in env file,same error solved > > [@hibernate2011](https://github.com/hibernate2011) My PDF parsing service and Dify are deployed in two different Docker containers on the same server. Now I have connected the PDF parsing service to Dify. When I upload a file in the Dify chatflow, this problem occurs. How should I configure FILES_URL? set dify docker container, solve this error first, you can checkout the env description in [.env.example](https://github.com/langgenius/dify/blob/main/docker/.env.example)
Author
Owner

@FANBUG01 commented on GitHub (Mar 21, 2025):

The same problem occurs when using Comfyui text to generate images, but this error occurs when images need to be returned to the Comfyui workflow as loading image nodes.

@FANBUG01 commented on GitHub (Mar 21, 2025): The same problem occurs when using Comfyui text to generate images, but this error occurs when images need to be returned to the Comfyui workflow as loading image nodes.
Author
Owner

@LoserCoderLi commented on GitHub (Mar 22, 2025):

env 文件中将 FILES_URL 设置为本地基本 URL

Can you tell me how to operate it in detail? After I connect to ComfyUI, this problem will also occur when uploading pictures. How to solve it

@LoserCoderLi commented on GitHub (Mar 22, 2025): > env 文件中将 FILES_URL 设置为本地基本 URL Can you tell me how to operate it in detail? After I connect to ComfyUI, this problem will also occur when uploading pictures. How to solve it
Author
Owner

@LoserCoderLi commented on GitHub (Mar 22, 2025):

使用Comfyui文本生成图片时也会出现同样的问题,但是需要将图片作为加载图片节点返回给Comfyui工作流时,就会出现这个错误。

我也是遇到这个问题

@LoserCoderLi commented on GitHub (Mar 22, 2025): > 使用Comfyui文本生成图片时也会出现同样的问题,但是需要将图片作为加载图片节点返回给Comfyui工作流时,就会出现这个错误。 我也是遇到这个问题
Author
Owner

@Nikoni5151 commented on GitHub (Apr 12, 2025):

@gozq @xiaowuzicode @sunxiaoyu12 @LoserCoderLi @FANBUG01

set this in .env file (line 42)
FILES_URL=http://host.docker.internal

then re-compose your container by executing docker compose up -d in cmd

the .env file should be at /dify/docker path. if not exist, copy .env.example and rename it to .env

@Nikoni5151 commented on GitHub (Apr 12, 2025): @gozq @xiaowuzicode @sunxiaoyu12 @LoserCoderLi @FANBUG01 set this in .env file (line 42) `FILES_URL=http://host.docker.internal` then re-compose your container by executing `docker compose up -d` in cmd the .env file should be at /dify/docker path. if not exist, copy .env.example and rename it to .env
Author
Owner

@Nikoni5151 commented on GitHub (Apr 12, 2025):

NOT EVERYONE using dify knows Docker well. Devs may should add this in this documentation
https://docs.dify.ai/guides/tools/tool-configuration/comfyui#id-6.-image-input

@Nikoni5151 commented on GitHub (Apr 12, 2025): **NOT EVERYONE** using dify knows Docker well. Devs may should add this in this documentation https://docs.dify.ai/guides/tools/tool-configuration/comfyui#id-6.-image-input
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#41