mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #23163] issue: Failed to parse error response: 400, message='Attempt to decode JSON with unexpected mimetype: application/x-ndjson' when calling ollama cloud #19902
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23163
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
0.18.3
Operating System
MacOS Sequioa
Browser (if applicable)
Microsoft Edge
Confirmation
README.md.Expected Behavior
Responses are parsed properly
Actual Behavior
400 Http Error on frontend and the following error response in the console:
2026-03-28 10:56:19.572 | INFO | open_webui.routers.openai:get_all_models:487 - get_all_models()
2026-03-28 10:56:19.572 | INFO | open_webui.routers.ollama:get_all_models:322 - get_all_models()
Batches: 0%| | 0/1 [00:00<?, ?it/s]2026-03-28 10:56:20.268 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.1.192:57413 - "POST /api/chat/completions HTTP/1.1" 200
2026-03-28 10:56:20.276 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.1.192:57413 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200
Batches: 100%|██████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.45it/s]
2026-03-28 10:56:21.296 | ERROR | open_webui.routers.ollama:send_post_request:151 - Failed to parse error response: 400, message='Attempt to decode JSON with unexpected mimetype: application/x-ndjson', url='http://mac.local:11434/api/chat'
Steps to Reproduce
Logs & Screenshots
Included in actual behaviour
Additional Information
No response
@ghost commented on GitHub (Mar 28, 2026):
Updated microsft edge and it seemed to have fixed the issue. Very odd.