mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22725] [CLOSED] fix:preserve filter http errors #49880
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/22725
Author: @sebnowak
Created: 3/16/2026
Status: ❌ Closed
Base:
dev← Head:fix/preserve-filter-http-errors📝 Commits (10+)
fe6783cMerge pull request #19030 from open-webui/devfc05e0aMerge pull request #19405 from open-webui/deve3faec6Merge pull request #19416 from open-webui/dev9899293Merge pull request #19448 from open-webui/dev140605eMerge pull request #19462 from open-webui/dev6f1486fMerge pull request #19466 from open-webui/devd95f533Merge pull request #19729 from open-webui/deva7271530.6.43 (#20093)6adde20Merge pull request #20394 from open-webui/devf9b0534Merge pull request #20522 from open-webui/dev📊 Changes
2 files changed (+3 additions, -1 deletions)
View changed files
📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/routers/pipelines.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is a minimal bug fix rather than a larger feature or design change and i have already created a corresponding PR in pipelines (https://github.com/open-webui/pipelines/pull/597). Without this PR here the other would not make sense and i wouldnt know what to discuss.
Before submitting, make sure you've checked the following:
devbranch.fixprefix as it is a bug in my opinion.Changelog Entry
Description
Added
Changed
backend/open_webui/routers/pipelines.pynow re-raises pipeline inlet HTTP error responses asHTTPException.backend/open_webui/main.pynow re-raisesHTTPExceptioninprocess_chat()before the generic exception handler.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
HTTPExceptionpreserves the HTTP semantics instead of flattening them into a generic exception.open-webui/pipelines#<PIPELINES_PR_NUMBER>Screenshots or Videos
Testing
I personally tested all changes in this PR.
Steps:
dev.python3 test_open_webui_pipeline_http_errors.py(script was created with the help of Codex)process_pipeline_inlet_filter()preserves the HTTP status and detail from a pipeline inlet error responseprocess_chat()does not swallow an existingHTTPExceptiontest_open_webui_pipeline_http_errors.py
Result:
CLI output:
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.