mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-18 10:48:00 -05:00
[GH-ISSUE #24875] bug: SafeWebBaseLoader._fetch raises TypeError on every URL, silently breaking all web search (v0.9.5) #123731
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 @offbyonebit on GitHub (May 18, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24875
Describe the bug
Web search returns no sources for every query when using the default
safe_webloader (SearXNG or any other engine). SearXNG returns results normally but Open WebUI reports zero sources after the fetch step.Root cause
SafeWebBaseLoader.__init__storesAIOHTTP_CLIENT_ALLOW_REDIRECTSinself.requests_kwargs:_fetchthen unpacksself.requests_kwargsand also passesallow_redirectsas an explicit keyword argument:Python raises:
continue_on_failure=Truesilently swallows this for every URL, so the fetch step always produces zero documents.Minimal reproduction
Expected behavior
Web search returns page content from the fetched URLs.
Affected version
v0.9.5 — the duplicate was introduced when
allow_redirectswas added torequests_kwargsas part of the SSRF redirect-blocking fix (GHSA-rh5x-h6pp-cjj6), but was not removed from the explicitsession.get()call.Fix
Remove the redundant
allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTSfrom thesession.get()call in_fetch. The value is already carried byself.requests_kwargs, so the SSRF protection is fully preserved.@owui-terminator[bot] commented on GitHub (May 18, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟢 #24793 issue: Web search discards all results — duplicate allow_redirects keyword in SafeWebBaseLoader._fetch()
This is the same underlying bug: web search results are discarded because
SafeWebBaseLoader._fetch()passesallow_redirectstwice, causing aTypeErroron every fetch in v0.9.5.by web2bruno ·
bug🟣 #24560 issue: SafeWebBaseLoader._fetch crashes with TypeError on duplicate allow_redirects kwarg, breaking all web search in v0.9.5
Closed report of the identical root cause and symptom set: silent fetch failures in
safe_webdue to duplicateallow_redirects, which causes all web search sources to be empty.by blaknite
🟣 #24630 bug: SafeWebBaseLoader._fetch() passes
allow_redirectstwice → TypeError on every async web search fetchAnother direct duplicate describing the same
aiohttp.ClientSession.get()multiple-values error fromSafeWebBaseLoader._fetch(), with web search returning zero content/sources.by da-astro ·
bug💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.
@offbyonebit commented on GitHub (May 18, 2026):
Confirming that the fix is already present in the
devbranch (theallow_redirectsduplicate is gone fromutils.pythere). This issue documents the regression for users on the v0.9.5 release so they know what they're hitting and can either patch the file manually or wait for the next release.@Classic298 commented on GitHub (May 18, 2026):
I believe this is fixed in dev and i think this is the third duplicate. Please search for duplicates before opening an issue.