Skip to content

issue: The content provided is empty. Please ensure that there is text or data present before proceeding. #15190

Description

@Farmouss

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.15

Ollama Version (if applicable)

0.9.2

Operating System

Ubuntu 24.04

Browser (if applicable)

Chrome

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

When I upload an audio file in the notes section, it should be analyzed and transcription produced
Audio chat should work normally and transcribe what I'm saying

Actual Behavior

When I upload the audio file, error message appears : "The content provided is empty. Please ensure that there is text or data present before proceeding."
And no transcription is done

Also, the audio chat doesn't work either, and an error message appears : "Oops! It seems like the file format you're trying to upload is not supported. Please upload a file with a supported format and try again."

Steps to Reproduce

  1. Go to note section
  2. Create a new note
  3. Upload an audio file

Logs & Screenshots

2025-06-21 07:31:51.658 | INFO | open_webui.routers.files:upload_file:94 - file.content_type: audio/x-m4a - {}

2025-06-21 07:31:51.704 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:1125 - save_docs_to_vector_db: document N 12 3.m4a file-[ID] - {}

2025-06-21 07:31:51.706 | WARNING | open_webui.retrieval.vector.dbs.milvus:query:192 - Query attempted on non-existent collection: open_webui_file_b0b12529_0f22_4387_a2c8_d28856b339a8 - {}

2025-06-21 07:31:51.706 | ERROR | open_webui.routers.retrieval:process_file:1457 - The content provided is empty. Please ensure that there is text or data present before proceeding. - {}

Traceback (most recent call last):

File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap

self._bootstrap_inner()

│    └ <function Thread._bootstrap_inner at 0x70d57a5409a0>

└ <WorkerThread(AnyIO worker thread, started 124055124444864)>

File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner

self.run()

│    └ <function WorkerThread.run at 0x70d3f87faca0>

└ <WorkerThread(AnyIO worker thread, started 124055124444864)>

File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run

result = context.run(func, *args)

         │       │   │      └ ()

         │       │   └ functools.partial(<function upload_file at 0x70d42bf79e40>, user=UserModel(id='[ID]', name='[USERNAME]'run' of '_contextvars.Context' objects>

         └ <_contextvars.Context object at 0x70d3f81d6b40>

File "/app/backend/open_webui/routers/files.py", line 181, in upload_file

process_file(request, ProcessFileForm(file_id=id), user=user)

│            │        │                       │         └ UserModel(id='[ID]', name='[USERNAME]', [EMAIL ADDRESS] role='admin', profile_image...

│            │        │                       └ '[ID]'

│            │        └ <class 'open_webui.routers.retrieval.ProcessFileForm'>

│            └ <starlette.requests.Request object at 0x70d3e19f6a90>

└ <function process_file at 0x70d4057b3c40>

File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file

raise e

      └ ValueError(<ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present be...

File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file

result = save_docs_to_vector_db(

         └ <function save_docs_to_vector_db at 0x70d4057b34c0>

File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db

raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)

                 │              └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee...

                 └ <enum 'ERROR_MESSAGES'>

ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.

2025-06-21 07:31:51.707 | ERROR | open_webui.routers.files:upload_file:190 - 400: The content provided is empty. Please ensure that there is text or data present before proceeding. - {}

Traceback (most recent call last):

File "/app/backend/open_webui/routers/retrieval.py", line 1447, in process_file

raise e

File "/app/backend/open_webui/routers/retrieval.py", line 1419, in process_file

result = save_docs_to_vector_db(

         └ <function save_docs_to_vector_db at 0x70d4057b34c0>

File "/app/backend/open_webui/routers/retrieval.py", line 1167, in save_docs_to_vector_db

raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)

                 │              └ <ERROR_MESSAGES.EMPTY_CONTENT: 'The content provided is empty. Please ensure that there is text or data present before procee...

                 └ <enum 'ERROR_MESSAGES'>

ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap

self._bootstrap_inner()

│    └ <function Thread._bootstrap_inner at 0x70d57a5409a0>

└ <WorkerThread(AnyIO worker thread, started 124055124444864)>

File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner

self.run()

│    └ <function WorkerThread.run at 0x70d3f87faca0>

└ <WorkerThread(AnyIO worker thread, started 124055124444864)>

File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run

result = context.run(func, *args)

         │       │   │      └ ()

         │       │   └ functools.partial(<function upload_file at 0x70d42bf79e40>, user=UserModel(id='[ID]', name='[USERNAME]'run' of '_contextvars.Context' objects>

         └ <_contextvars.Context object at 0x70d3f81d6b40>

File "/app/backend/open_webui/routers/files.py", line 181, in upload_file

process_file(request, ProcessFileForm(file_id=id), user=user)

│            │        │                       │         └ UserModel(id='[ID]', name='[USERNAME]', [EMAIL ADDRESS] role='admin', profile_image...

│            │        │                       └ '[ID]'

│            │        └ <class 'open_webui.routers.retrieval.ProcessFileForm'>

│            └ <starlette.requests.Request object at 0x70d3e19f6a90>

└ <function process_file at 0x70d4057b3c40>

File "/app/backend/open_webui/routers/retrieval.py", line 1464, in process_file

raise HTTPException(

      └ <class 'fastapi.exceptions.HTTPException'>

fastapi.exceptions.HTTPException: 400: The content provided is empty. Please ensure that there is text or data present before proceeding.

2025-06-21 07:31:51.708 | ERROR | open_webui.routers.files:upload_file:191 - Error processing file: [ID] - {}

Additional Information

This feature was working in previous versions of OpenWebUi, I haven't changed anything in my stack :

  • VectorDB is Milvus, and it's working for other type of embeddings (like workspace etc.)
  • I have 2 Ollama servers, both working well
  • I'm using local whisper directly from OpenWebUi, and the large-v3
  • I'm using an RTX 4080 in the Openwebui server, running Ubuntu 24.04 and docker
  • See the docker-compose file below :

version: '3' services: openwebui: image: ghcr.io/open-webui/open-webui:cuda container_name: open-webui runtime: nvidia networks: - mcp-global env_file: - stack.env ports: - "3000:8080" volumes: - /my/path/to/openwebui/docker/data:/app/backend/data

And I have some env variables for the setup (NVIDIA_VISIBLE_DEVICES = all, and others)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions