mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #22603] issue: Provider returned error #19762
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 @bibendi on GitHub (Mar 12, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22603
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
Chrome Latest
Confirmation
README.md.Expected Behavior
It works
Actual Behavior
Got "Provider returned error" message. I tried several providers (openrouter, fireworks). It worked on the previous version.
Steps to Reproduce
Basic usage.
Logs & Screenshots
I don't see any errors in logs.
Additional Information
No response
@HammondDynamics commented on GitHub (Mar 13, 2026):
I'm experiencing the same issue on v0.8.10 (Docker, OpenRouter, Claude Sonnet 4.6). I did some investigation and found the root cause.
The issue: Images work in short conversations but fail with "Provider returned error" in long conversations (~80+ messages).
What's happening: Open WebUI sends the image as an internal file UUID reference instead of resolving it to base64 before forwarding to the API provider.
In the browser DevTools (Network tab → Payload), the image in the API request looks like this:
Instead of the expected:
The provider receives the UUID string as the image URL, can't resolve it, and returns an error.
Proof it's not a provider issue: I made a direct API call from inside the container to OpenRouter with 82 messages + the same image as base64, and it returned 200 successfully. The provider handles long conversations with images fine.
Reproduction:
Environment: v0.8.10, Docker (
ghcr.io/open-webui/open-webui:main), OpenRouter, anthropic/claude-sonnet-4.6@Classic298 commented on GitHub (Mar 13, 2026):
@HammondDynamics the request in the browser is not telling here.
The backend takes the request of the frontend and resolves the file UUID and inserts the base64 before sending it to the provider.
If you only get "provider returned error" on long conversations you might just be facing a context length issue.
@Classic298 commented on GitHub (Mar 13, 2026):
This doesn't proof anything
Open WebUI doesn't store the base64 of the image on the frontend. That would be too expensive and slow to handle.
Instead the backend detects it and inserts the base64
Try sending the WHOLE chat history to the provider, not just the message you think "failed".