I have read and followed all the instructions provided in the README.md.
I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
Expected Behavior:
STT engine for Web API works.
Actual Behavior:
ERROR: 'NoneType' object is not a mapping
Description
Bug Summary:
STT engine for Web API doesn't work.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
docker logs:
open-webui | INFO [open_webui.apps.audio.main] file.content_type: audio/wav
open-webui | ERROR [open_webui.apps.audio.main] 'NoneType' object is not a mapping
open-webui | Traceback (most recent call last):
open-webui | File "/app/backend/open_webui/apps/audio/main.py", line 526, in transcription
open-webui | return {**data, "filename": file_path}
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | TypeError: 'NoneType' object is not a mapping
open-webui | ERROR [open_webui.apps.audio.main] 400: [ERROR: 'NoneType' object is not a mapping]
open-webui | Traceback (most recent call last):
open-webui | File "/app/backend/open_webui/apps/audio/main.py", line 526, in transcription
open-webui | return {**data, "filename": file_path}
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | TypeError: 'NoneType' object is not a mapping
open-webui |
open-webui | During handling of the above exception, another exception occurred:
open-webui |
open-webui | Traceback (most recent call last):
open-webui | File "/app/backend/open_webui/apps/audio/main.py", line 529, in transcription
open-webui | raise HTTPException(
open-webui | fastapi.exceptions.HTTPException: 400: [ERROR: 'NoneType' object is not a mapping]
open-webui | transcribe /app/backend/data/cache/audio/transcriptions/0691714b-63ce-4a34-9f2c-6988e72a52ea.wav
console logs:
[Log] Recording started (RichTextInput.DcUu9IOU.js, line 43)
[Log] Recording stopped (RichTextInput.DcUu9IOU.js, line 43)
[Log] {detail: "[ERROR: 400: [ERROR: 'NoneType' object is not a mapping]]"} (index.CqbU8MTe.js, line 1)
[Log] SpeechRecognitionEvent {isTrusted: true, resultIndex: 0, results: SpeechRecognitionResultList, type: "result", target: webkitSpeechRecognition, …} (RichTextInput.DcUu9IOU.js, line 43)
[Log] Speech recognition turned off due to inactivity. (RichTextInput.DcUu9IOU.js, line 43)
[Log] recognition ended (RichTextInput.DcUu9IOU.js, line 43)
Originally created by @mowtschan on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6600
# Bug Report
## Installation Method
docker compose
## Environment
- **Open WebUI Version:** [latest]
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## Expected Behavior:
STT engine for Web API works.
## Actual Behavior:
ERROR: 'NoneType' object is not a mapping
## Description
**Bug Summary:**
STT engine for Web API doesn't work.
## Reproduction Details
**Steps to Reproduce:**

## Logs and Screenshots
docker logs:
```
open-webui | INFO [open_webui.apps.audio.main] file.content_type: audio/wav
open-webui | ERROR [open_webui.apps.audio.main] 'NoneType' object is not a mapping
open-webui | Traceback (most recent call last):
open-webui | File "/app/backend/open_webui/apps/audio/main.py", line 526, in transcription
open-webui | return {**data, "filename": file_path}
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | TypeError: 'NoneType' object is not a mapping
open-webui | ERROR [open_webui.apps.audio.main] 400: [ERROR: 'NoneType' object is not a mapping]
open-webui | Traceback (most recent call last):
open-webui | File "/app/backend/open_webui/apps/audio/main.py", line 526, in transcription
open-webui | return {**data, "filename": file_path}
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | TypeError: 'NoneType' object is not a mapping
open-webui |
open-webui | During handling of the above exception, another exception occurred:
open-webui |
open-webui | Traceback (most recent call last):
open-webui | File "/app/backend/open_webui/apps/audio/main.py", line 529, in transcription
open-webui | raise HTTPException(
open-webui | fastapi.exceptions.HTTPException: 400: [ERROR: 'NoneType' object is not a mapping]
open-webui | transcribe /app/backend/data/cache/audio/transcriptions/0691714b-63ce-4a34-9f2c-6988e72a52ea.wav
```
console logs:
```
[Log] Recording started (RichTextInput.DcUu9IOU.js, line 43)
[Log] Recording stopped (RichTextInput.DcUu9IOU.js, line 43)
[Log] {detail: "[ERROR: 400: [ERROR: 'NoneType' object is not a mapping]]"} (index.CqbU8MTe.js, line 1)
[Log] SpeechRecognitionEvent {isTrusted: true, resultIndex: 0, results: SpeechRecognitionResultList, type: "result", target: webkitSpeechRecognition, …} (RichTextInput.DcUu9IOU.js, line 43)
[Log] Speech recognition turned off due to inactivity. (RichTextInput.DcUu9IOU.js, line 43)
[Log] recognition ended (RichTextInput.DcUu9IOU.js, line 43)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @mowtschan on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6600
Bug Report
Installation Method
docker compose
Environment
Confirmation:
Expected Behavior:
STT engine for Web API works.
Actual Behavior:
ERROR: 'NoneType' object is not a mapping
Description
Bug Summary:
STT engine for Web API doesn't work.
Reproduction Details
Steps to Reproduce:

Logs and Screenshots
docker logs:
console logs:
@tjbck commented on GitHub (Nov 3, 2024):
Fixed on dev, Thanks!