can not input comfyui url to dify tools #387

Closed
opened 2026-02-16 10:19:14 -05:00 by yindo · 4 comments
Owner

Originally created by @yuuuuuuan on GitHub (Jun 18, 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

1.4.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

PluginInvokeError: {"args":{},"error_type":"ToolProviderCredentialValidationError","message":"can not connect to ws://127.0.0.1:8188/ws?clientId=test123. Error: [Errno 111] Connection refused"}

when i using desktop comfyui, i can not input url to dify

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @yuuuuuuan on GitHub (Jun 18, 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 1.4.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce PluginInvokeError: {"args":{},"error_type":"ToolProviderCredentialValidationError","message":"can not connect to ws://127.0.0.1:8188/ws?clientId=test123. Error: [Errno 111] Connection refused"} when i using desktop comfyui, i can not input url to dify ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:19:14 -05:00
Author
Owner

@yt-koike commented on GitHub (Jun 19, 2025):

Hello @yuuuuuuan, I'm yt-koike.

Firstly, could you please try to access to http://127.0.0.1:8188 via your web browser. If it doesn't show the ComfyUI's interface, your ComfyUI is not working well.
If so, please try my personal compose.yaml or some other docker images to start a ComfyUI server.

If your browser successfully showed the ComfyUI's interface, please report about it here again.

Thank you :)

@yt-koike commented on GitHub (Jun 19, 2025): Hello @yuuuuuuan, I'm yt-koike. Firstly, could you please try to access to http://127.0.0.1:8188 via your web browser. If it doesn't show the ComfyUI's interface, your ComfyUI is not working well. If so, please try my personal [compose.yaml]( https://github.com/yt-koike/ComfyUI-docker/tree/dify-0.1.3) or some other docker images to start a ComfyUI server. If your browser successfully showed the ComfyUI's interface, please report about it here again. Thank you :)
Author
Owner

@yuuuuuuan commented on GitHub (Jun 20, 2025):

Hi, @yt-koike

I haven’t tried running ComfyUI in Docker yet — for now, I’ve only deployed it on WSL, and it works fine when accessed through my browser.

However, it still doesn’t seem to work correctly with your Dify plugin.

Here is the error message from Dify, along with a screenshot of ComfyUI running.

PluginInvokeError: {"args":{},"error_type":"ToolProviderCredentialValidationError","message":"can not connect to ws://127.0.0.1:8188/ws?clientId=test123. Error: [Errno 111] Connection refused"}

Image

@yuuuuuuan commented on GitHub (Jun 20, 2025): Hi, @yt-koike I haven’t tried running ComfyUI in Docker yet — for now, I’ve only deployed it on WSL, and it works fine when accessed through my browser. However, it still doesn’t seem to work correctly with your Dify plugin. Here is the error message from Dify, along with a screenshot of ComfyUI running. PluginInvokeError: {"args":{},"error_type":"ToolProviderCredentialValidationError","message":"can not connect to ws://127.0.0.1:8188/ws?clientId=test123. Error: [Errno 111] Connection refused"} ![Image](https://github.com/user-attachments/assets/ef623d7b-feb4-4afc-8af9-5723b689be5d)
Author
Owner

@yt-koike commented on GitHub (Jun 20, 2025):

@yuuuuuuan

OK, then please change the IP address to your PC's, neither "127.0.0.1" nor "localhost".
I presume you are Windows user as you said you use WSL, you can know the IP address by opening cmd.exe and type ipconfig.

This "can not connect to ws" error might be because the Dify's docker container doesn't understand where "127.0.0.1" or "localhost" is so please use more specific address such as "192.168.0.3".

You can check the connection by running HTTP request node on Dify.

I hope it works!

@yt-koike commented on GitHub (Jun 20, 2025): @yuuuuuuan OK, then please change the IP address to your PC's, neither "127.0.0.1" nor "localhost". I presume you are Windows user as you said you use WSL, you can know the IP address by opening cmd.exe and type `ipconfig`. This "can not connect to ws" error might be because the Dify's docker container doesn't understand where "127.0.0.1" or "localhost" is so please use more specific address such as "192.168.0.3". You can check the connection by running [HTTP request node](https://docs.dify.ai/en/guides/workflow/node/http-request#http-request) on Dify. I hope it works!
Author
Owner

@yuuuuuuan commented on GitHub (Jun 20, 2025):

@yt-koike
Thanks a ton, I was stuck on this for days!

@yuuuuuuan commented on GitHub (Jun 20, 2025): @yt-koike Thanks a ton, I was stuck on this for days!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#387