[PR #11859] Fix comfyui tool https #27385

Closed
opened 2026-02-21 20:41:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/11859

State: closed
Merged: Yes


@crazywoola Sorry, I missed one. When comfyui generates pictures, you also need to use websocket connection~

Summary

Fixes #11822
Because not all comfyui are deployed with dify, this part of the code currently has a check for "if comfyui is an https website, it cannot be successfully connected", so the judgment of the http protocol is added. If the comfyui website protocol is http, the websocket connection string is ws://, if the comfyui website protocol is https, then the websocket connection string is wss://.

Tip

Fixes #11822

Screenshots

Before:
This is an error before it is fixed. Regardless of the comfyui website protocol, ws:// will be used for websocket connectivity testing.
image

After:
This is after the repair, select the websocket connection string according to the comfyui website protocol
image

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/11859 **State:** closed **Merged:** Yes --- @crazywoola Sorry, I missed one. When comfyui generates pictures, you also need to use websocket connection~ # Summary Fixes #11822 Because not all comfyui are deployed with dify, this part of the code currently has a check for "if comfyui is an https website, it cannot be successfully connected", so the judgment of the http protocol is added. If the comfyui website protocol is http, the websocket connection string is ws://, if the comfyui website protocol is https, then the websocket connection string is wss://. > [!Tip] >Fixes #11822 # Screenshots Before: This is an error before it is fixed. Regardless of the comfyui website protocol, ws:// will be used for websocket connectivity testing. ![image](https://github.com/user-attachments/assets/96d7a865-66d0-4dd1-9398-01c814c7655d) After: This is after the repair, select the websocket connection string according to the comfyui website protocol ![image](https://github.com/user-attachments/assets/6b686b3d-958a-463c-b83f-f15446eaeab6) # Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:41:25 -05:00
yindo closed this issue 2026-02-21 20:41:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#27385