mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #18976] [CLOSED] fix: resolve Firecrawl import error and Socket.IO CORS warning #25041
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/18976
Author: @Limbicnation
Created: 11/6/2025
Status: ❌ Closed
Base:
main← Head:fix/firecrawl-import-and-socketio-cors📝 Commits (1)
5387b6dfix: resolve Firecrawl import error and Socket.IO CORS warning📊 Changes
3 files changed (+10 additions, -7 deletions)
View changed files
📝
backend/open_webui/retrieval/web/firecrawl.py(+2 -2)📝
backend/open_webui/retrieval/web/utils.py(+3 -3)📝
backend/open_webui/socket/main.py(+5 -2)📄 Description
Description
Fixes #18973
This PR resolves two issues:
FirecrawlAppinstead ofFirecrawl(firecrawl v1.12.0+ API change)Changes
backend/open_webui/retrieval/web/utils.py: Changed Firecrawl imports and instantiationsbackend/open_webui/retrieval/web/firecrawl.py: Changed Firecrawl imports and instantiationsbackend/open_webui/socket/main.py: Added proper CORS origin handling for Socket.IOTesting
Root Cause Analysis
Firecrawl Import Error
The firecrawl package changed its exported class name from
FirecrawltoFirecrawlAppin recent versions. Open-WebUI was still importing the old class name, causing:Socket.IO CORS Warning
Open-WebUI's
CORS_ALLOW_ORIGINconfig splits on;resulting in['*']when set to'*'. Socket.IO'scors_allowed_originsparameter expects the string'*'for wildcard, not a list['*'], causing origin validation warnings.Additional Context
FirecrawlApp🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.