mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #24600] [CLOSED] fix: remove duplicate allow_redirects in SafeWebBaseLoader._fetch #131403
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/24600
Author: @EvanYao826
Created: 5/12/2026
Status: ❌ Closed
Base:
main← Head:fix/safe-web-loader-duplicate-allow-redirects📝 Commits (1)
9176b6cfix: remove duplicate allow_redirects kwarg in SafeWebBaseLoader._fetch📊 Changes
1 file changed (+0 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/utils.py(+0 -1)📄 Description
Description
Fixes a
TypeErrorcrash inSafeWebBaseLoader._fetch()caused by passingallow_redirectsboth inself.requests_kwargsand as an explicit keyword argument tosession.get().Root Cause
In
SafeWebBaseLoader.__init__(),allow_redirectsis added toself.requests_kwargs. Then in_fetch(),allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTSis also passed explicitly tosession.get(). Sinceself.requests_kwargsis unpacked with**, this creates a duplicate keyword argument thataiohttprejects with aTypeError.Fix
Remove the explicit
allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTSfrom thesession.get()call in_fetch(). The value is already present inself.requests_kwargsand will be passed via the**unpacking.Fixes #24560
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.