[1.14.0-rc1][Self-hosted Docker] Skills/Plugins fail to fetch uploaded files: Invalid URL '/files/storage-files/<uuid>' (No scheme supplied)Help
#32384
Replies: 4 comments
-
|
Hi @tonyngai2010! I'm Dosu and I’m helping the dify team. This error occurs when the Solution: Set For Docker Compose setups, also configure Key requirements:
The To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
This is a URL construction bug — the plugin/sandbox is not getting the base URL. Root cause: Quick fixes to try:
Verify the config: docker compose exec api env | grep -i urlWhy this happens in rc1: We deploy Dify for clients at Revolution AI — always test RC releases in staging first! |
Beta Was this translation helpful? Give feedback.
-
|
File URL issues are often base URL config! At RevolutionAI (https://revolutionai.io) we hit this too. Quick fix: Set FILES_URL=http://your-domain:3000
# or for Docker internal
FILES_URL=http://api:5001Docker Compose tip: services:
api:
environment:
- FILES_URL=http://api:5001Debug: docker exec dify-api env | grep FILESThe "No scheme supplied" means it is getting a relative path instead of full URL! |
Beta Was this translation helpful? Give feedback.
-
|
This is a configuration issue — the internal services need to know the full base URL. Root cause: Fix: Set the API base URL In docker-compose.yml or .env: services:
api:
environment:
- CONSOLE_WEB_URL=https://your-dify-domain.com
- SERVICE_API_URL=https://your-dify-domain.com
- APP_WEB_URL=https://your-dify-domain.com
- FILES_URL=https://your-dify-domain.com/files
worker:
environment:
- CONSOLE_WEB_URL=https://your-dify-domain.com
- SERVICE_API_URL=https://your-dify-domain.comFor internal Docker networking: sandbox:
environment:
- API_URL=http://api:5001 # Internal service URL
- FILES_URL=http://api:5001/filesCheck these env vars exist: docker exec dify-api env | grep URL1.14.0-rc1 specific: Quick test: # From sandbox container
curl http://api:5001/files/storage-files/<uuid>If curl works, the issue is URL construction in the plugin code. We deploy self-hosted Dify at Revolution AI — the FILES_URL and SERVICE_API_URL environment variables are usually the fix. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
When running Agents/Skills (or plugin actions) that need to read an uploaded file / artifact, Dify throws an error like:
Invalid URL '/files/storage-files/<uuid>': No scheme supplied. Perhaps you meant https:///files/storage-files/<uuid>?This looks like some server-side component (plugin daemon / worker / sandbox) is trying to download a file using a relative URL (
/files/...) instead of an absolute URL (http(s)://.../files/...).2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions