mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #18977] [CLOSED] fix: resolve Firecrawl import error and Socket.IO CORS warning #48090
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/18977
Author: @Limbicnation
Created: 11/6/2025
Status: ❌ Closed
Base:
dev← Head:fix/firecrawl-import-and-socketio-cors📝 Commits (2)
e85c7f7Merge pull request #18402 from open-webui/dev5387b6dfix: 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 critical bugs preventing Open WebUI from starting:
FirecrawlAppinstead ofFirecrawlChanges Made
Firecrawl Import Fix
FirecrawltoFirecrawlAppinbackend/open_webui/retrieval/web/utils.pyFirecrawltoFirecrawlAppinbackend/open_webui/retrieval/web/firecrawl.pyFirecrawlAppRoot Cause: The firecrawl package (v1.12.0+) changed its exported class from
FirecrawltoFirecrawlApp, causing ImportError on startup.Socket.IO CORS Fix
backend/open_webui/socket/main.pyto properly handle wildcard CORS originsSOCKETIO_CORS_ORIGINSvariable to convert["*"]to"*"for Socket.IO compatibilityRoot Cause: Socket.IO requires wildcard CORS as string
"*", not list["*"], causing origin validation warnings.Pull Request Checklist
devbranchfix:prefixChangelog Entry
Description
Fixed critical ImportError preventing application startup and resolved Socket.IO CORS origin validation warnings.
Added
SOCKETIO_CORS_ORIGINSvariable inbackend/open_webui/socket/main.pyfor proper CORS handlingChanged
FirecrawltoFirecrawlAppin all affected filesFixed
cannot import name 'Firecrawl' from 'firecrawl'(Issue #18973)Additional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.