ComfyUI Plugin (langgenius/comfyui/comfyui): Fails to Convert Workflow with Multiple Node Types (Subgraphs, Loaders, Custom Nodes) #752

Closed
opened 2026-02-16 10:20:23 -05:00 by yindo · 2 comments
Owner

Originally created by @WUW9150 on GitHub (Oct 27, 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.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.`

Originally created by @WUW9150 on GitHub (Oct 27, 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.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. `<details><summary>Click to expand Workflow JSON</summary> {   "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) ... } </details>` ### ✔️ 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.`
yindo added the bug label 2026-02-16 10:20:23 -05:00
yindo closed this issue 2026-02-16 10:20:23 -05:00
Author
Owner

@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:

  • You reported that the ComfyUI plugin fails to convert workflows containing multiple node types (subgraphs, loaders, custom nodes) on Dify v1.9.1 in a self-hosted Docker environment.
  • The error occurs during the "Convert Workflow to API ready" step, indicating missing node types in widgets_value_names.
  • This issue blocks execution of the workflow through the Dify node.
  • No additional comments or updates have been provided since your initial report.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 12, 2025): Hi, @WUW9150. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that the ComfyUI plugin fails to convert workflows containing multiple node types (subgraphs, loaders, custom nodes) on Dify v1.9.1 in a self-hosted Docker environment. - The error occurs during the "Convert Workflow to API ready" step, indicating missing node types in `widgets_value_names`. - This issue blocks execution of the workflow through the Dify node. - No additional comments or updates have been provided since your initial report. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I do not hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#752