[PR #24029] [CLOSED] fix: add missing import requests in SafeFireCrawlLoader #66341

Closed
opened 2026-05-06 12:39:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24029
Author: @Jah-yee
Created: 4/23/2026
Status: Closed

Base: mainHead: fix/23966-requests-import


📝 Commits (1)

  • 25fc351 fix: 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,

Description

In backend/open_webui/retrieval/web/utils.py, the SafeFireCrawlLoader.lazy_load() method calls requests.post() but the requests module is not imported. This causes a NameError: name '\''requests'\'' is not defined at runtime.

Fix

Added import requests to the imports section of the file.

+ import requests

This is a minimal one-line fix that resolves the NameError so that SafeFireCrawlLoader can function correctly.

Thank 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24029 **Author:** [@Jah-yee](https://github.com/Jah-yee) **Created:** 4/23/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/23966-requests-import` --- ### 📝 Commits (1) - [`25fc351`](https://github.com/open-webui/open-webui/commit/25fc3514207a405d683f3c2022bbae35d0b1b225) fix: add missing `import requests` in SafeFireCrawlLoader ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/retrieval/web/utils.py` (+1 -0) </details> ### 📄 Description Good day, ## Description In `backend/open_webui/retrieval/web/utils.py`, the `SafeFireCrawlLoader.lazy_load()` method calls `requests.post()` but the `requests` module is not imported. This causes a `NameError: name '\''requests'\'' is not defined` at runtime. ## Fix Added `import requests` to the imports section of the file. ```diff + import requests ``` This is a minimal one-line fix that resolves the `NameError` so that `SafeFireCrawlLoader` can function correctly. Thank 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 12:39:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#66341