-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Open
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.4
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- Upload a document containing images into a Knowledge Base.
- During chunk generation, the chunks contain image URLs such as:

- Perform knowledge retrieval which returns multiple chunks containing image URLs.
- Iterate over all image URLs in Chatflow and convert them into Dify file objects using a simple custom dify plugin, which only utilizing create_image_message() interface, like:
class ImageUrlToFile(Tool):
def _invoke(self, tool_parameters: dict[str, Any]) -> Generator[ToolInvokeMessage]:
image_url = tool_parameters.get("image_url", "")
yield self.create_image_message(image_url)
The Chatflow workflow is: knowledge retrieval → URL filtering using a regular expression → converting the URLs to files via a plugin → response.
- Restart the Dify Docker containers.
- Execute the Chatflow for the first time after startup.
✔️ Expected Behavior
All image URLs should be successfully downloaded and converted into Dify file objects during the first Chatflow execution.
❌ Actual Behavior
During the first Chatflow execution after container startup:
- The first image URL fails with the error:
Failed to download image: http://api:5001/files/<file_id>/file-preview?timestamp=xxxxx&nonce=xxxxx&sign=xxxx:
Client error '404 Not Found' for url ' http://api:5001/files/<file_id>/file-preview?timestamp=xxxxx&nonce=xxxxx&sign=xxxx'
- All subsequent images in the same execution succeed.
- Tried to catch the error in custom pulgin, but it seems that the error does not from the plugin.
After this first execution:
- Running the same Chatflow again works normally.
- All images download successfully, including the first one.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working