Files
open-webui/backend/open_webui/routers
Classic298 420b4a2797 fix(retrieval): name the link when process/web cannot fetch it (#31351)
A link whose host refuses the connection, such as a closed port, still came back from POST /api/v1/retrieval/process/web as "Error querying knowledge base", so the caller was told the knowledge base failed when the link was the problem.

The web loaders log a failed fetch and return no documents. That empty result then failed while being saved to the vector store, and the save error was the one reported.

process_web now answers with the existing "Could not read content from <url>" 400 as soon as the loader returns no documents, the same message a link refused by the fetch filter already gets. The check sits in the endpoint so web search and the other users of the loaders keep their current behaviour.

With process=false or embedding bypassed, an unreachable link now gets the same 400 where it used to return 200 with empty content.

Fixes #31347
2026-09-26 07:28:13 +04:00
..
2026-09-24 12:10:30 -04:00
2026-09-21 08:59:39 -04:00
2026-09-21 08:59:39 -04:00
2026-09-21 10:19:59 -04:00
2026-09-23 23:36:15 -04:00
2026-06-29 05:47:21 -05:00
2026-09-21 10:19:59 -04:00
2026-09-16 00:34:24 -04:00
2026-09-21 10:25:20 -04:00
2026-09-22 13:13:22 -04:00
2026-07-27 19:39:36 -04:00
2026-08-31 00:39:16 -04:00
2026-09-17 20:11:05 -04:00
2026-08-11 01:15:05 -06:00
2026-09-21 10:30:53 -04:00
2026-09-21 08:31:27 -04:00
2026-09-07 14:46:52 -04:00
2026-09-06 17:27:30 -04:00