mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #23966] issue: v0.9.1 web search with Firecrawl fails: NameError: requests is not defined in retrieval/web/utils.py #35662
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 @bahree on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23966
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.9.1
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04.4 LTS
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Expected Behavior
When web search is enabled in chat, Open WebUI should:
Actual Behavior
Web search appears to run, but the final response says no sources were found / falls back to a generic non-grounded answer.
In the backend logs, the real failure is:
This then cascades into missing temporary web-search vector collections, e.g.:
Steps to Reproduce
searxngfirecrawlNameError: requests is not definedLogs & Screenshots
Then later:
Additional Information
Environment
Suspected Root Cause
In
backend/open_webui/retrieval/web/utils.py,SafeFireCrawlLoader.lazy_load()callsrequests.post(...), butrequestsdoes not appear to be imported in that module.Root Cause Confirmed
Confirmed locally on
v0.9.1:backend/open_webui/retrieval/web/utils.pycallsrequests.post(...)requestsimport requestsat module scope restores the Firecrawl web-search pathLocal Workaround
As a temporary local hotfix, we mounted a patched copy of the
v0.9.1file back into the container with a one-line fix:In our Docker deployment, the patched file is mounted over:
After that:
web-search-*collections again@Balaxxe commented on GitHub (Apr 22, 2026):
Can confirm - this is the exact issue I am having. It's almost like every other update firecrawl takes a hit for some reason.
@gaby commented on GitHub (Apr 22, 2026):
@Balaxxe Lack of proper testing/CI processes is the reason.
@weekens commented on GitHub (Apr 22, 2026):
Same for me.
@frost19k commented on GitHub (Apr 22, 2026):
**Bug 1: Missing
requestsimportBug 2: Firecrawl response parsing fails
Code expects:
Firecrawl actually returns:
datais a list, not a dict. There is nowebkey — results are directly indata.@gaby commented on GitHub (Apr 22, 2026):
Unrelated, requests import is missing.
@frost19k commented on GitHub (Apr 22, 2026):
@gaby Eh, if you fix it you fix it. I've patched mine. I'm good.
@weekens commented on GitHub (Apr 22, 2026):
@bahree , @frost19k , thanks for your hints on fixing this! Made a PR.
@mero20j1 commented on GitHub (Apr 22, 2026):
I confirm I have the same problem
@alew3 commented on GitHub (Apr 22, 2026):
got the same error!
@weekens commented on GitHub (Apr 23, 2026):
@gaby , what do we need to merge the PR?
@gaby commented on GitHub (Apr 23, 2026):
@weekens I'm not a maintainer here.
Ping @Classic298 @tjbck
@Classic298 commented on GitHub (Apr 23, 2026):
I cannot merge anything. Tim will handle it.
@tjbck commented on GitHub (Apr 24, 2026):
Addresssed in dev.