[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 #35431

Closed
opened 2026-04-25 09:38:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ghost on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23163

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

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

  • 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

Responses are parsed properly

Actual Behavior

Image

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

  1. create directory
  2. git pull latest release tag from github
  3. create python environment in directory
  4. run pip install open-webui
  5. start openwebui with open-webui serve
  6. import ollama cloud model gemini-3-flash-preview:cloud or nemotron-super:cloud
  7. run a prompt

Logs & Screenshots

Included in actual behaviour

Additional Information

No response

Originally created by @ghost on GitHub (Mar 28, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23163 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] 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!). - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using 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 every relevant configuration, setting, and environment variable used in my setup.** - [x] 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). - [x] 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 Responses are parsed properly ### Actual Behavior <img width="1074" height="200" alt="Image" src="https://github.com/user-attachments/assets/defeaf38-1006-4910-9ac7-b546d19ef5eb" /> 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 1. create directory 2. git pull latest release tag from github 3. create python environment in directory 4. run pip install open-webui 5. start openwebui with open-webui serve 6. import ollama cloud model gemini-3-flash-preview:cloud or nemotron-super:cloud 7. run a prompt ### Logs & Screenshots Included in actual behaviour ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 09:38:25 -05:00
Author
Owner

@ghost commented on GitHub (Mar 28, 2026):

Updated microsft edge and it seemed to have fixed the issue. Very odd.

<!-- gh-comment-id:4146500049 --> @ghost commented on GitHub (Mar 28, 2026): Updated microsft edge and it seemed to have fixed the issue. Very odd.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35431