Document uploed error on v0.5.16 (latest) #4064

Closed
opened 2025-11-11 15:45:29 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Jeevanhm on GitHub (Feb 23, 2025).

Hello,

I'm getting below error while uploading the files to the knowledge base of to the chat window. I started getting this error after updating the latest open webUI version. Not sure if its a config of a version issue.

Open webUI - v0.5.16 (latest)
Ollama version - 0.5.1
Installation method - Docker

INFO [open_webui.routers.files] file.content_type: application/pdf
INFO [open_webui.routers.retrieval] save_docs_to_vector_db: document test.pdf file-3bbd1fb0-b671-4b4d-90c3-77b788b673c0
INFO [open_webui.routers.retrieval] adding to collection file-3bbd1fb0-b671-4b4d-90c3-77b788b673c0
ERROR [open_webui.routers.retrieval] 'NoneType' object is not iterable
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 834, in save_docs_to_vector_db
embeddings = embedding_function(
^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/retrieval/utils.py", line 339, in
return lambda query, user=None: generate_multiple(query, user, func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/retrieval/utils.py", line 332, in generate_multiple
embeddings.extend(
TypeError: 'NoneType' object is not iterable
ERROR [open_webui.routers.retrieval] 'NoneType' object is not iterable
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 1011, in process_file
raise e
File "/app/backend/open_webui/routers/retrieval.py", line 983, in process_file
result = save_docs_to_vector_db(
^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/routers/retrieval.py", line 856, in save_docs_to_vector_db
raise e
File "/app/backend/open_webui/routers/retrieval.py", line 834, in save_docs_to_vector_db
embeddings = embedding_function(
^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/retrieval/utils.py", line 339, in
return lambda query, user=None: generate_multiple(query, user, func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/retrieval/utils.py", line 332, in generate_multiple
embeddings.extend(
TypeError: 'NoneType' object is not iterable
ERROR [open_webui.routers.files] 400: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 1011, in process_file
raise e
File "/app/backend/open_webui/routers/retrieval.py", line 983, in process_file
result = save_docs_to_vector_db(
^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/routers/retrieval.py", line 856, in save_docs_to_vector_db
raise e
File "/app/backend/open_webui/routers/retrieval.py", line 834, in save_docs_to_vector_db
embeddings = embedding_function(
^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/retrieval/utils.py", line 339, in
return lambda query, user=None: generate_multiple(query, user, func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/retrieval/utils.py", line 332, in generate_multiple
embeddings.extend(
TypeError: 'NoneType' object is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/backend/open_webui/routers/files.py", line 70, in upload_file
process_file(request, ProcessFileForm(file_id=id), user=user)
File "/app/backend/open_webui/routers/retrieval.py", line 1020, in process_file
raise HTTPException(
fastapi.exceptions.HTTPException: 400: 'NoneType' object is not iterable
ERROR [open_webui.routers.files] Error processing file: 3bbd1fb0-b671-4b4d-90c3-77b788b673c0
Collection file-3bbd1fb0-b671-4b4d-90c3-77b788b673c0 does not exist.
HTTPConnectionPool(host='127.0.0.1', port=11434): Max retries exceeded with url: /api/embed (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb002c6fed0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Originally created by @Jeevanhm on GitHub (Feb 23, 2025). Hello, I'm getting below error while uploading the files to the knowledge base of to the chat window. I started getting this error after updating the latest open webUI version. Not sure if its a config of a version issue. Open webUI - v0.5.16 (latest) Ollama version - 0.5.1 Installation method - Docker INFO [open_webui.routers.files] file.content_type: application/pdf INFO [open_webui.routers.retrieval] save_docs_to_vector_db: document test.pdf file-3bbd1fb0-b671-4b4d-90c3-77b788b673c0 INFO [open_webui.routers.retrieval] adding to collection file-3bbd1fb0-b671-4b4d-90c3-77b788b673c0 ERROR [open_webui.routers.retrieval] 'NoneType' object is not iterable Traceback (most recent call last): File "/app/backend/open_webui/routers/retrieval.py", line 834, in save_docs_to_vector_db embeddings = embedding_function( ^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/retrieval/utils.py", line 339, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/retrieval/utils.py", line 332, in generate_multiple embeddings.extend( TypeError: 'NoneType' object is not iterable ERROR [open_webui.routers.retrieval] 'NoneType' object is not iterable Traceback (most recent call last): File "/app/backend/open_webui/routers/retrieval.py", line 1011, in process_file raise e File "/app/backend/open_webui/routers/retrieval.py", line 983, in process_file result = save_docs_to_vector_db( ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/routers/retrieval.py", line 856, in save_docs_to_vector_db raise e File "/app/backend/open_webui/routers/retrieval.py", line 834, in save_docs_to_vector_db embeddings = embedding_function( ^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/retrieval/utils.py", line 339, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/retrieval/utils.py", line 332, in generate_multiple embeddings.extend( TypeError: 'NoneType' object is not iterable ERROR [open_webui.routers.files] 400: 'NoneType' object is not iterable Traceback (most recent call last): File "/app/backend/open_webui/routers/retrieval.py", line 1011, in process_file raise e File "/app/backend/open_webui/routers/retrieval.py", line 983, in process_file result = save_docs_to_vector_db( ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/routers/retrieval.py", line 856, in save_docs_to_vector_db raise e File "/app/backend/open_webui/routers/retrieval.py", line 834, in save_docs_to_vector_db embeddings = embedding_function( ^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/retrieval/utils.py", line 339, in <lambda> return lambda query, user=None: generate_multiple(query, user, func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/retrieval/utils.py", line 332, in generate_multiple embeddings.extend( TypeError: 'NoneType' object is not iterable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/backend/open_webui/routers/files.py", line 70, in upload_file process_file(request, ProcessFileForm(file_id=id), user=user) File "/app/backend/open_webui/routers/retrieval.py", line 1020, in process_file raise HTTPException( fastapi.exceptions.HTTPException: 400: 'NoneType' object is not iterable ERROR [open_webui.routers.files] Error processing file: 3bbd1fb0-b671-4b4d-90c3-77b788b673c0 Collection file-3bbd1fb0-b671-4b4d-90c3-77b788b673c0 does not exist. HTTPConnectionPool(host='127.0.0.1', port=11434): Max retries exceeded with url: /api/embed (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb002c6fed0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4064