mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 10:05:23 -04:00
aihubmix-image plugin error #972
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 @wenjoying on GitHub (Feb 12, 2026).
Self Checks
Dify version
1.11.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I encountered an error while using the aihubmix-image plugin (version 0.0.5). The error still occurs even after reinstallation, as shown in the screenshot below
✔️ Expected Behavior
I expected the plugin to work properly.
❌ Actual Behavior
[0m[32;1m[1;3mTool: gpt-image-edit
[0m[32;1m[1;3mOutputs: {"type":"text","message":{"text":"Editing image with GPT Image Edit using model: gpt-image-1..."},"meta":null}
[0m
2026-02-12 02:42:55,234.234 ERROR [GraphWorker-1] [base.py:277] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{\"args\":{\"description\":\"GPT Image Edit failed: Error downloading image from URL: Failed to download image from URL: https://ai.xxxxxx.cn/files/79edfd09-b868-47f0-bc7f-5f8555a56047/file-preview?timestamp=1770864082\\u0026nonce=ea50f9488813ad905ed5c0ae806bbfbb\\u0026sign=bcahtzE3W4kE1pnA_qcZV1wcIoH6dZlMPkK6brLOZRg%3D\"},\"error_type\":\"InvokeError\",\"message\":\"GPT Image Edit failed: Error downloading image from URL: Failed to download image from URL: https://ai.xxxx.cn/files/79edfd09-b868-47f0-bc7f-5f8555a56047/file-preview?timestamp=1770864082\\u0026nonce=ea50f9488813ad905ed5c0ae806bbfbb\\u0026sign=bcahtzE3W4kE1pnA_qcZV1wcIoH6dZlMPkK6brLOZRg%3D\"}","error_type":"PluginInvokeError","args":null}', 'data': None}
@dosubot[bot] commented on GitHub (Feb 12, 2026):
Hi @wenjoying! I'm Dosu and I’m helping the dify team.
Looking at the error message and the aihubmix-image plugin code, this appears to be a network connectivity issue between the plugin and your Dify file storage URL (
https://ai.xxxxxx.cn/files/...).The plugin has a 30-second timeout for downloading images, and the error occurs when the HTTP request fails for any reason (timeout, connection error, SSL issues, or non-200 response).
Possible causes:
Workarounds to try:
There have been recent improvements to image handling in this plugin, so updating to the latest version may also help if a newer version is available.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@wenjoying commented on GitHub (Feb 12, 2026):
1.The file has not expired and is accessible in the browser. However, the plugin consistently throws an error no matter how many times I attempt to invoke it, and switching to other versions also results in errors; only version 0.0.2 works normally.
2.The plugin container and Dify are on the same network.
3.The length of the base64-encoded string will most likely exceed the parameter length limit.
@dosubot[bot] commented on GitHub (Feb 12, 2026):
Thanks for the additional details. This is helpful.
Looking at the version history, PR langgenius/dify#2410 (v0.0.2 → v0.0.3) introduced significant changes to how image inputs are processed. The plugin now handles Dify file transfer variables differently, with separate logic for
remote_urlvslocal_filetransfer methods.One key observation: the current image download code makes plain HTTP requests without any authentication headers:
If Dify's internal file URLs require authentication (common for security), this would explain why the URL works in your browser (session cookies) but fails in the plugin. Since v0.0.2 may have handled image input differently (possibly receiving base64 directly rather than URLs), this authentication gap wouldn't have affected older versions.
This appears to be a regression or limitation in how v0.0.3+ handles Dify internal file URLs. It would be worth filing this as an issue on the dify-official-plugins repository, as the plugin may need to either:
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@dosubot[bot] commented on GitHub (Feb 12, 2026):
Based on research into the plugin code, here's what I found about your two errors:
1. Gemini "No images returned in the response"
The Gemini tool silently skips images that fail to convert, so this error means all image parts in the API response failed to process. This could be due to the AIHubMix API returning data in an unexpected format.
2. GPT Image Edit "Failed to download image from URL"
The error shows the plugin couldn't download your Dify file URL. In self-hosted Docker setups, this often happens when the plugin container can't reach the URL due to network configuration (the URL
https://ai.xxxxxx.cn/files/...may not be accessible from within the Docker network).Troubleshooting suggestions:
curlfrom inside the container)Could you share the raw API response or test if network requests work from your Docker container? That would help narrow down whether this is a network issue or an API response format problem.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other