[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"},"error_type":"InvokeError","message":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"} #923

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

Originally created by @gubinjie on GitHub (Jan 7, 2026).

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

When using the Gemini plugin to use this model in the workflow, gemini3-flash-preview, this workflow is used to make the model understand the content of the uploaded file, and throw an error when the API calls this workflow.

req_id: e8b4374cc1 PluginInvokeError: {"args":{"description":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"},"error_type":"InvokeError","message":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"}

✔️ Expected Behavior

req_id: e8b4374cc1 PluginInvokeError: {"args":{"description":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"},"error_type":"InvokeError","message":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"}

Actual Behavior

No response

Originally created by @gubinjie on GitHub (Jan 7, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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 [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] 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 When using the Gemini plugin to use this model in the workflow, gemini3-flash-preview, this workflow is used to make the model understand the content of the uploaded file, and throw an error when the API calls this workflow. `req_id: e8b4374cc1 PluginInvokeError: {"args":{"description":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"},"error_type":"InvokeError","message":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"}` <!-- Failed to upload "image.png" --> ### ✔️ Expected Behavior `req_id: e8b4374cc1 PluginInvokeError: {"args":{"description":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"},"error_type":"InvokeError","message":"[models] Error: 'Failed to create file. Upload URL did not returned from the create file request.'"}` ### ❌ Actual Behavior _No response_
yindo added the bug label 2026-02-16 10:21:01 -05:00
yindo closed this issue 2026-02-16 10:21:01 -05:00
Author
Owner

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

This error usually means the Gemini plugin couldn't get a valid upload URL for your file. In self-hosted Docker setups, this is often caused by a misconfigured or missing FILES_URL environment variable. The Gemini plugin's upload logic requires FILES_URL to be set so that file URLs start with http:// or https://—otherwise, the upload fails with a ValueError and no upload URL is returned. Double-check that your FILES_URL is set correctly in your Docker environment and points to a reachable file server URL. If the file upload process still fails, check your logs for any exceptions during the file fetch or upload steps, as issues like inaccessible file URLs or problems with the Google GenAI upload API can also cause this error. For more details, see the relevant code in the Gemini plugin's upload method (source).

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 (Jan 7, 2026): <!-- Answer --> This error usually means the Gemini plugin couldn't get a valid upload URL for your file. In self-hosted Docker setups, this is often caused by a misconfigured or missing FILES_URL environment variable. The Gemini plugin's upload logic requires FILES_URL to be set so that file URLs start with http:// or https://—otherwise, the upload fails with a ValueError and no upload URL is returned. Double-check that your FILES_URL is set correctly in your Docker environment and points to a reachable file server URL. If the file upload process still fails, check your logs for any exceptions during the file fetch or upload steps, as issues like inaccessible file URLs or problems with the Google GenAI upload API can also cause this error. For more details, see the relevant code in the Gemini plugin's upload method ([source](https://github.com/langgenius/dify-official-plugins/blob/b9aa7f0cda7432c554170618787721aa41b33fad/models/gemini/models/llm/llm.py#L128-L181)). <!-- 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/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1a9c5b0a-772b-4220-9946-1928e10c8267?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20error%20usually%20means%20the%20Gemini%20plugin%20couldn%27t%20get%20a%20valid%20upload%20URL%20for%20your%20file.%20In%20self-hosted%20Docker%20setups%2C%20this%20is%20often%20caused%20by%20a%20misconfigured%20or%20missing%20FILES_URL%20environment%20variable.%20The%20Gemini%20plugin%27s%20upload%20logic%20requires%20FILES_URL%20to%20be%20set%20so%20that%20file%20URLs%20start%20with%20http%3A//%20or%20https%3A//%E2%80%94otherwise%2C%20the%20upload%20fails%20with%20a%20ValueError%20and%20no%20upload%20URL%20is%20returned.%20Double-check%20that%20your%20FILES_URL%20is%20set%20correctly%20in%20your%20Docker%20environment%20and%20points%20to%20a%20reachable%20file%20server%20URL.%20If%20the%20file%20upload%20process%20still%20fails%2C%20check%20your%20logs%20for%20any%20exceptions%20during%20the%20file%20fetch%20or%20upload%20steps%2C%20as%20issues%20like%20inaccessible%20file%20URLs%20or%20problems%20with%20the%20Google%20GenAI%20upload%20API%20can%20also%20cause%20this%20error.%20For%20more%20details%2C%20see%20the%20relevant%20code%20in%20the%20Gemini%20plugin%27s%20upload%20method%20%28%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/b9aa7f0cda7432c554170618787721aa41b33fad/models/gemini/models/llm/llm.py%23L128-L181%29%29.)&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/2378)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#923