mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #23379] [MERGED] feat: log provider errors to console for better insights #114483
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23379
Author: @Classic298
Created: 4/3/2026
Status: ✅ Merged
Merged: 4/12/2026
Merged by: @tjbck
Base:
dev← Head:log-errors📝 Commits (3)
57d4c35fix: log provider errors that were silently swallowed7c52783Update main.py7ab0478fix: wrap non-JSON SSE error responses in JSON so middleware handles them📊 Changes
3 files changed (+23 additions, -1 deletions)
View changed files
📝
backend/open_webui/main.py(+1 -1)📝
backend/open_webui/routers/openai.py(+19 -0)📝
backend/open_webui/utils/middleware.py(+3 -0)📄 Description
Some SSE streamed provider errors like from openrouter.ai are swallowed by open webui and this makes it impossible to see what actually was the error (i.e. context window exceeded)
this raises them and makes them visible to console logging.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.