mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #23014] issue: file upload as knowledge base to agent fails to respond and results in object not iterable #35396
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?
Originally created by @sanchitbhavsar on GitHub (Mar 25, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23014
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
Macos
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The agent should respond with the retrieval part
Actual Behavior
Results in "'NoneType' object is not iterable" error
Steps to Reproduce
However, if create a separate knowledge base with files and then attaching it to the agent works only fails when adding files directly.
Logs & Screenshots
Additional Information
After adding:
@Classic298 commented on GitHub (Mar 25, 2026):
Cannot reproduce. What's the exact backend log?
@sanchitbhavsar commented on GitHub (Mar 25, 2026):
@Classic298 nothing concerning in the logs but as you can check it is processing the file and we are using hybrid search reranking so it is doing the retrieval and then it fails..
2026-03-25 10:05:31.791 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.31.26.108:0 - "POST /api/chat/completions HTTP/1.1" 200 [DEBUG] Processing file: 3792510366unzer_metaprompt.md, content length: 11546 2026-03-25 10:05:31.977 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.31.31.174:0 - "GET /_app/version.json HTTP/1.1" 200 2026-03-25 10:05:31.996 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.31.16.213:0 - "GET /_app/version.json HTTP/1.1" 200 2026-03-25 10:05:32.020 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.31.26.108:0 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 2026-03-25 10:05:34.509 | INFO | open_webui.retrieval.utils:query_collection_with_hybrid_search:509 - Starting hybrid search for 1 queries in 1 collections... 2026-03-25 10:05:35.050 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 10.31.30.46:0 - "GET /_app/version.json HTTP/1.1" 200