mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
ComfyUI Plugin (langgenius/comfyui/comfyui): Fails to Convert Workflow with Multiple Node Types (Subgraphs, Loaders, Custom Nodes) #752
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 @WUW9150 on GitHub (Oct 27, 2025).
Self Checks
Dify version
1.9.1
Plugin version
0.3.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Okay, here is a detailed GitHub issue draft based on our conversation. You can copy and paste this into the "New issue" form on the Dify GitHub repository (https://github.com/langgenius/dify/issues).
Issue Title: ComfyUI Plugin (langgenius/comfyui/comfyui): Fails to Convert Workflow with Multiple Node Types (Subgraphs, Loaders, Custom Nodes)
Environment Details:
Dify Version: 1.9.1
Deployment: Self-hosted
ComfyUI Version (Commit Hash): b7992f871af38d89a459080caa57cc359ed93a46
Browser: [Specify your browser, e.g., Chrome, Firefox]
OS: [Specify your OS, e.g., Windows, macOS, Linux]
Bug Description:
The built-in ComfyUI plugin (langgenius/comfyui/comfyui) consistently fails during the "Convert Workflow to API ready" step when the provided ComfyUI workflow JSON contains certain node types. This prevents the execution of the workflow via the Dify node.
The error message follows a pattern: Run failed: An error occurred in the plugin, please contact the author of langgenius/comfyui/comfyui for help, error type: Exception, error details: Failed to convert Workflow to API ready. [NODE_TYPE] not found in widgets_value_names.
Through iterative testing by removing/bypassing nodes one by one, the following node types have been identified as causing this error:
Subgraphs / Group Nodes (specifically type ID 805a5f96-6fdd-45a4-a1f3-623234fa734f, which was "USO Reference Conditioning")
CLIPVisionLoader
ModelPatchLoader
EasyCache
ImageScaleToMaxDimension
ConditioningZeroOut
FluxKontextMultiReferenceLatentMethod
It appears the plugin cannot correctly parse the configuration (widgets_value_names) for these specific node types when preparing the API call.
Steps to Reproduce:
Create a Dify Chatflow or Workflow.
Add the "ComfyUI Workflow" node provided by the langgenius/comfyui/comfyui plugin.
Configure the node with the ComfyUI server address.
Paste a valid ComfyUI workflow JSON (exported via "Save (API Format)") into the "Workflow JSON" text input. The JSON must contain one or more of the node types listed above. (See example JSON below).
Configure the necessary Inputs (e.g., mapping sys.files to a LoadImage node's image input, mapping sys.query or another variable to a CLIPTextEncode node's text input).
Run the Dify workflow with appropriate inputs (e.g., an image and text).
Observe the error at the ComfyUI node step.
`
Click to expand Workflow JSON
{
"id": "4be48bc0-f21c-45cb-b657-bb75df5d398c",
"revision": 0,
"last_node_id": 119,
"last_link_id": 196,
"nodes": [
{
"id": 97,
"type": "MarkdownNote",
"pos": [ -690, 1120 ],
// ... (rest of MarkdownNote node) ...
},
// ... (Many other nodes, including CheckpointLoaderSimple, LoraLoaderModelOnly, etc.) ...
{
"id": 114,
"type": "FluxKontextMultiReferenceLatentMethod", // <--- Problematic Node Type
"pos": [ -276.59, 262.99 ],
"size": [ 353.59, 58 ],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{ "label": "conditioning", "name": "conditioning", "type": "CONDITIONING", "link": 181 },
{ "label": "reference_latents_method", "name": "reference_latents_method", "type": "COMBO", "widget": { "name": "reference_latents_method" }, "link": null }
],
"outputs": [
{ "label": "CONDITIONING", "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 182 ] }
],
"properties": { "cnr_id": "comfy-core", "ver": "0.3.65", "Node name for S&R": "FluxKontextMultiReferenceLatentMethod" },
"widgets_values": [ "uxo/uno" ]
},
// ... (Rest of the nodes and links) ...
],
// ... (Links, Groups, Config, Extra, Version) ...
}
✔️ Error log
`Error Messages Encountered During Troubleshooting:
Failed to convert Workflow to API ready. 805a5f96-6fdd-45a4-a1f3-623234fa734f not found in widgets_value_names. (Subgraph/Group Node)
Failed to convert Workflow to API ready. CLIPVisionLoader not found in widgets_value_names.
Failed to convert Workflow to API ready. ModelPatchLoader not found in widgets_value_names.
Failed to convert Workflow to API ready. EasyCache not found in widgets_value_names.
Failed to convert Workflow to API ready. ImageScaleToMaxDimension not found in widgets_value_names.
Failed to convert Workflow to API ready. ConditioningZeroOut not found in widgets_value_names.
Failed to convert Workflow to API ready. FluxKontextMultiReferenceLatentMethod not found in widgets_value_names.`
@dosubot[bot] commented on GitHub (Nov 12, 2025):
Hi, @WUW9150. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
widgets_value_names.Next Steps:
Thank you for your understanding and contribution!
@yt-koike commented on GitHub (Dec 1, 2025):
@WUW9150 Hello. Sorry for the late support. I made a patch to fix it for 0.3.3.