mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Dify1.9.1 ComfyUI Authorization failed #745
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhangxiaotian-China on GitHub (Oct 22, 2025).
Self Checks
Dify version
1.9.1
Plugin version
0.3.2、0.2.5
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
Authorization process prompts error:

req_id: cfcd34cdf8 PluginInvokeError: {"args":{},"error_type":"ToolProviderCredentialValidationError","message":"can not connect to ws://192.168.2.201:8188/ws?clientId=test123. Error: Connection to remote host was lost."}
The ComfyUI service is also normal and can be opened correctly when accessed in a browser
The problem occurred after the upgrade of Dify, the previous version of Dify was 1.7. x
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Oct 22, 2025):
Hi @zhangxiaotian-China! I'm Dosu and I’m helping the dify-official-plugins team.
Dify 1.9.1 introduced stricter credential validation and compliance checks for plugins, including ComfyUI. This means credentials are now checked for existence and policy compliance before use, and any missing or invalid credentials can cause authorization failures—even if the service is accessible in a browser. The new logic also surfaces clearer error messages and may block actions for unavailable credentials, which could explain the ToolProviderCredentialValidationError you're seeing after the upgrade [source].
To troubleshoot: double-check that your ComfyUI plugin configuration (URLs, API keys, and credential types) matches the expected format and that all credentials are valid and present in the Dify database. Also, ensure there are no network/firewall issues blocking WebSocket connections from Dify to ComfyUI, as browser access does not guarantee plugin connectivity. If you have multiple credentials, make sure none are invalid or missing, as Dify now checks all available credentials for compliance.
If the issue persists, try enabling debug logs for more detailed error output, test with a fresh credential, or revert to a previous plugin version to isolate the root cause.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
