mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #16817] issue: unhandled openrouter api exception #18055
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 @nitanmarcel on GitHub (Aug 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16817
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.24 (latest)
Ollama Version (if applicable)
No response
Operating System
Debian
Browser (if applicable)
Any
Confirmation
README.md.Expected Behavior
The error should be displayed in the web ui when raised.
Actual Behavior
Instead, the error only appears in the logs and in the web ui it shows like it's still waiting to respond. The error is actually displayed in the UI but only after a page refresh.
Also you can notice from the timestamp that the time before it makes a request and it gets a response is very long.
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@tjbck commented on GitHub (Aug 22, 2025):
@nitanmarcel have you tried using system-level connections instead of direct connections?
@Classic298 commented on GitHub (Aug 22, 2025):
Error says right here?
fastapi.exceptions.HTTPException: 400: {'error': {'message': 'OpenAI is requiring a key to access this model, which you can add in https://openrouter.ai/settings/integrations - you can also switch to gpt-5-chat or gpt-5-mini.', 'code': 403}}
Openrouter GPT-5 model is not available just like that, you need to add your openai key to your openrouter account
This is not an Open WebUI error.
@nitanmarcel commented on GitHub (Aug 22, 2025):
I'm sharing the instance with someone so the OpenRouter connection is local not global. I can try the global one very fast a little later if it's needed for debugging
@nitanmarcel commented on GitHub (Aug 22, 2025):
I appreciate the response but the issue as described here it's that the web UI does not show the error unless I refresh the page
@nitanmarcel commented on GitHub (Aug 22, 2025):
Same issue, the error refuses to show in the chat unless the page is refreshed
@tjbck commented on GitHub (Aug 28, 2025):
Should be addressed, keep us updated!