-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
🐞 bugSomething isn't workingSomething isn't working
Description
Self Checks
- I have read the Contributing Guide and Language Policy.
- This is only for bug report, if you would like to ask a question, please head to Discussions.
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report, otherwise it will be closed.
- 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- Please do not modify this template :) and fill in all the required fields.
Dify version
1.11.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- Create a new Workflow or Chatflow.
- In the "Start" node, add a variable of type
Array[File]. - Set a default value for this variable (e.g., upload a file).
- Click "Publish" and "Publish as Tool".
- Click "Publish" again
- Observe the first error: Pydantic validation error (expecting int/str/float/bool but got a dict/base64Url).
- Attempt to click "Publish" again.
- Observe the second error: "Tool with name [name] or app_id [id] already exists".
✔️ Expected Behavior
The system should correctly
❌ Actual Behavior
- Pydantic throws a validation error because it fails to parse the file object (dict with base64Url/id) as a basic data type.
- After the initial failure, the tool name/ID becomes "locked" in the database.
- Any further attempts to publish result in an "already exists" error, making the tool name unusable.
Screenshots:

dosubot
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working