mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:03:05 -05:00
[PR #24712] fix: handle list-shape data in Firecrawl /search response #115107
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/24712
Author: @Classic298
Created: 5/14/2026
Status: 🔄 Open
Base:
dev← Head:fix/firecrawl-list-shape-parsing📝 Commits (1)
eabf630fix: handle list-shape data in Firecrawl /search response📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/firecrawl.py(+4 -1)📄 Description
Firecrawl /search returns either
{"data": [...]}(flat list — v1, and what frost19k reported on #23966) or{"data": {"web": [...]}}(v2, current production). The parser only handled the dict shape:On a list-shape response,
data.get('web')raised AttributeError, caught by the function's outer try/except, andsearch_firecrawlsilently returned []. Web search worked against v2 endpoints but is one upstream-format-change away from failing closed again. Accept either.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.