[GH-ISSUE #23014] issue: file upload as knowledge base to agent fails to respond and results in object not iterable #35396

Closed
opened 2026-04-25 09:36:30 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @sanchitbhavsar on GitHub (Mar 25, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23014

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

The agent should respond with the retrieval part

Actual Behavior

Results in "'NoneType' object is not iterable" error

Steps to Reproduce

  1. Create a new agent
  2. upload files directly here as knowledge base
  3. save changes
  4. when query the agent, it results in the error.

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

Image

Additional Information

Image

After adding:

Image
Originally created by @sanchitbhavsar on GitHub (Mar 25, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23014 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior The agent should respond with the retrieval part ### Actual Behavior Results in "'NoneType' object is not iterable" error ### Steps to Reproduce 1. Create a new agent 2. upload files directly here as knowledge base 3. save changes 4. when query the agent, it results in the error. 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 <img width="1248" height="602" alt="Image" src="https://github.com/user-attachments/assets/f1cbc8db-7e39-4a94-8a66-c39b22a43a09" /> ### Additional Information <img width="1248" height="602" alt="Image" src="https://github.com/user-attachments/assets/39cceb3b-45f8-4165-a679-68fcf2ccd78b" /> After adding: <img width="1251" height="294" alt="Image" src="https://github.com/user-attachments/assets/a53f6f7f-e23e-401c-9682-563b78987d51" />
GiteaMirror added the bug label 2026-04-25 09:36:30 -05:00
Author
Owner

@Classic298 commented on GitHub (Mar 25, 2026):

Cannot reproduce. What's the exact backend log?

<!-- gh-comment-id:4125398310 --> @Classic298 commented on GitHub (Mar 25, 2026): Cannot reproduce. What's the exact backend log?
Author
Owner

@sanchitbhavsar commented on GitHub (Mar 25, 2026):

Cannot reproduce. What's the exact backend log?

@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

<!-- gh-comment-id:4125479879 --> @sanchitbhavsar commented on GitHub (Mar 25, 2026): > Cannot reproduce. What's the exact backend log? @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`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35396