mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #24030] [CLOSED] fix: add missing import requests in SafeFireCrawlLoader
#43116
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/24030
Author: @Jah-yee
Created: 4/23/2026
Status: ❌ Closed
Base:
main← Head:fix/safefirecrawl-import-requests📝 Commits (1)
26b51cefix: add missing import requests in SafeFireCrawlLoader📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/open_webui/retrieval/web/utils.py(+1 -0)📄 Description
Good day
Bug Description
In
backend/open_webui/retrieval/web/utils.py, theSafeFireCrawlLoader.lazy_load()method callsrequests.post()on line 233, but therequestsmodule is never imported. This causes aNameError: name 'requests' is not definedat runtime.Root Cause
The
requestslibrary is used for making HTTP calls to the Firecrawl API endpoint ({self.api_url}/v1/scrape), but the import statement is missing from the module-level imports.Fix Applied
Added
import requestsalongside the other third-party imports (afterimport validators).Verification
The fix can be verified by:
SafeFireCrawlLoaderclasslazy_load()method — it should no longer raiseNameErrorThank you for your work on this project. I hope this small fix is helpful. Please let me know if there's anything to adjust.
Warmly,
RoomWithOutRoof
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.