The comfyui plugin is not fully compatible with 1.12.1. #964

Open
opened 2026-02-16 10:21:08 -05:00 by yindo · 1 comment
Owner

Originally created by @bright141 on GitHub (Feb 7, 2026).

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

Plugin version

0.3.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When this plugin's workflow is released as a tool, if another workflow executes this tool, the following error will occur. However, the workflow where the tool is located works normally. The problem might be related to the names of the file variables.
The problem emerged when upgrading from version 1.11.4 to 1.12.1.

✔️ Error log

{
"error_message": "1 validation error for FileMessage\n Value error, Invalid FileMessage: missing file_marker [type=value_error, input_value={}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.11/v/value_error",
"error_type": "WorkflowNodeError"
}

Originally created by @bright141 on GitHub (Feb 7, 2026). ### 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.12.1 ### Plugin version 0.3.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When this plugin's workflow is released as a tool, if another workflow executes this tool, the following error will occur. However, the workflow where the tool is located works normally. The problem might be related to the names of the file variables. The problem emerged when upgrading from version 1.11.4 to 1.12.1. ### ✔️ Error log { "error_message": "1 validation error for FileMessage\n Value error, Invalid FileMessage: missing file_marker [type=value_error, input_value={}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.11/v/value_error", "error_type": "WorkflowNodeError" }
yindo added the bug label 2026-02-16 10:21:08 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 7, 2026):

Hi @bright141! I'm Dosu and I’m helping the dify-official-plugins team.

This error is caused by stricter validation in Dify 1.12.1, which now requires a file_marker field in FileMessage objects when a workflow tool is invoked from another workflow. The comfyui plugin doesn't explicitly set this field and relies on Dify core to handle file outputs, which leads to the validation error you’re seeing when chaining workflows. This is a known issue resulting from recent changes and instability in Dify’s file variable handling logic for tools and plugins, especially after a fix for custom tool file handling was merged and then reverted in the core platform [details].

There isn’t an official workaround or patch for this specific error yet. The root cause is a mismatch between how the comfyui plugin emits file outputs (as blobs with metadata) and how Dify 1.12.1 expects file variables to be structured and validated when crossing workflow boundaries [core validation].

If you need an immediate solution, you may need to monitor for updates to either the comfyui plugin or Dify core that address this compatibility gap. If you’re comfortable with code, reviewing or patching the comfyui plugin to emit file messages with the required structure (including file_marker) or adjusting Dify’s validation logic for cross-workflow tool outputs could resolve the issue. Otherwise, consider temporarily avoiding chaining workflows that rely on file outputs from the comfyui plugin until a fix is released.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 7, 2026): <!-- Greeting --> Hi @bright141! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> This error is caused by stricter validation in Dify 1.12.1, which now requires a `file_marker` field in `FileMessage` objects when a workflow tool is invoked from another workflow. The comfyui plugin doesn't explicitly set this field and relies on Dify core to handle file outputs, which leads to the validation error you’re seeing when chaining workflows. This is a known issue resulting from recent changes and instability in Dify’s file variable handling logic for tools and plugins, especially after a fix for custom tool file handling was merged and then reverted in the core platform [[details](https://github.com/langgenius/dify/pull/24061)]. There isn’t an official workaround or patch for this specific error yet. The root cause is a mismatch between how the comfyui plugin emits file outputs (as blobs with metadata) and how Dify 1.12.1 expects file variables to be structured and validated when crossing workflow boundaries [[core validation](https://github.com/langgenius/dify/blob/4bd80683a436fec29f474d82bc5e69a5afc00ea6/api/core/tools/entities/tool_entities.py#L146-L260)]. If you need an immediate solution, you may need to monitor for updates to either the comfyui plugin or Dify core that address this compatibility gap. If you’re comfortable with code, reviewing or patching the comfyui plugin to emit file messages with the required structure (including `file_marker`) or adjusting Dify’s validation logic for cross-workflow tool outputs could resolve the issue. Otherwise, consider temporarily avoiding chaining workflows that rely on file outputs from the comfyui plugin until a fix is released. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4fdb4c0b-665c-464b-b8c0-9f9cfbf6ca1a?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20error%20is%20caused%20by%20stricter%20validation%20in%20Dify%201.12.1%2C%20which%20now%20requires%20a%20%60file_marker%60%20field%20in%20%60FileMessage%60%20objects%20when%20a%20workflow%20tool%20is%20invoked%20from%20another%20workflow.%20The%20comfyui%20plugin%20doesn%27t%20explicitly%20set%20this%20field%20and%20relies%20on%20Dify%20core%20to%20handle%20file%20outputs%2C%20which%20leads%20to%20the%20validation%20error%20you%E2%80%99re%20seeing%20when%20chaining%20workflows.%20This%20is%20a%20known%20issue%20resulting%20from%20recent%20changes%20and%20instability%20in%20Dify%E2%80%99s%20file%20variable%20handling%20logic%20for%20tools%20and%20plugins%2C%20especially%20after%20a%20fix%20for%20custom%20tool%20file%20handling%20was%20merged%20and%20then%20reverted%20in%20the%20core%20platform%20%5B%5Bdetails%5D%28https%3A//github.com/langgenius/dify/pull/24061%29%5D.%0A%0AThere%20isn%E2%80%99t%20an%20official%20workaround%20or%20patch%20for%20this%20specific%20error%20yet.%20The%20root%20cause%20is%20a%20mismatch%20between%20how%20the%20comfyui%20plugin%20emits%20file%20outputs%20%28as%20blobs%20with%20metadata%29%20and%20how%20Dify%201.12.1%20expects%20file%20variables%20to%20be%20structured%20and%20validated%20when%20crossing%20workflow%20boundaries%20%5B%5Bcore%20validation%5D%28https%3A//github.com/langgenius/dify/blob/4bd80683a436fec29f474d82bc5e69a5afc00ea6/api/core/tools/entities/tool_entities.py%23L146-L260%29%5D.%0A%0AIf%20you%20need%20an%20immediate%20solution%2C%20you%20may%20need%20to%20monitor%20for%20updates%20to%20either%20the%20comfyui%20plugin%20or%20Dify%20core%20that%20address%20this%20compatibility%20gap.%20If%20you%E2%80%99re%20comfortable%20with%20code%2C%20reviewing%20or%20patching%20the%20comfyui%20plugin%20to%20emit%20file%20messages%20with%20the%20required%20structure%20%28including%20%60file_marker%60%29%20or%20adjusting%20Dify%E2%80%99s%20validation%20logic%20for%20cross-workflow%20tool%20outputs%20could%20resolve%20the%20issue.%20Otherwise%2C%20consider%20temporarily%20avoiding%20chaining%20workflows%20that%20rely%20on%20file%20outputs%20from%20the%20comfyui%20plugin%20until%20a%20fix%20is%20released.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2555)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#964