Skip to content

issue: Audio transcript broken at 0.6.42 #20087

Description

@zilingzhang

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

Docker

Open WebUI Version

v0.6.42

Ollama Version (if applicable)

No response

Operating System

ubuntu 24.04

Browser (if applicable)

Chrome 143

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

ASR works correctly.

Actual Behavior

Open webui throws a "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. Run 0.6.42 ghcr.io/open-webui/open-webui:cuda
  2. Start audio in chat
  3. Received format error

Logs & Screenshots

2025-12-22 01:18:02.545 | ERROR | open_webui.utils.misc:strict_match_mime_type:637 - Failed to match mime type audio/wav: list
index out of range - {"trace_id": "c016792302aae3dcd1280b95bf3df0e1", "span_id": "ee98aa5b31424c78"}
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 0xec9a751049a0>
    └ <WorkerThread(AnyIO worker thread, started 260122144141728)>
  File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
    │    └ <function WorkerThread.run at 0xec94a41dd940>
    └ <WorkerThread(AnyIO worker thread, started 260122144141728)>
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 986, in run
    result = context.run(func, *args)
             │       │   │      └ ()
             │       │   └ functools.partial(<function transcription at 0xec96cd177e20>, 
user=UserModel(id='48a50a0a-d095-48cf-b084-26a710fa0e21', email...
             │       └ <method 'run' of '_contextvars.Context' objects>
             └ <_contextvars.Context object at 0xec94a413bec0>

  File "/app/backend/open_webui/routers/audio.py", line 1159, in transcription
    if not strict_match_mime_type(stt_supported_content_types, file.content_type):
           │                      │                            │    └ <property object at 0xec9a70897650>
           │                      │                            └ UploadFile(filename='recording.wav', size=44732, 
headers=Headers({'content-disposition': 'form-data; name="file"; filename="r...
           │                      └ ['']
           └ <function strict_match_mime_type at 0xec98d86718a0>

> File "/app/backend/open_webui/utils/misc.py", line 625, in strict_match_mime_type
    match = mimeparse.best_match(supported, header)
            │         │          │          └ 'audio/wav'
            │         │          └ []
            │         └ <function best_match at 0xec98d86702c0>
            └ <module 'mimeparse' from '/usr/local/lib/python3.11/site-packages/mimeparse.py'>

  File "/usr/local/lib/python3.11/site-packages/mimeparse.py", line 215, in best_match
    return weighted_matches[-1][0][0] and weighted_matches[-1][2] or ''
           │                              └ []
           └ []

IndexError: list index out of range

Additional Information

No response

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