[GH-ISSUE #13541] issue: #87684

Closed
opened 2026-05-15 12:10:11 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @harrismcc on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13541

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

0.6.6

Ollama Version (if applicable)

No response

Operating System

Linux (NixOs)

Browser (if applicable)

No response

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 listed steps to reproduce the bug in detail.

Expected Behavior

Using Openrouter should work, like it did in previous versions

Actual Behavior

When using Openrouter, any chat throws the error SyntaxError: Unexpected token 'd', "data: {"id"... is not valid JSON

Looking in the browser network tab, I'm seeing these openrouter heartbeats that seem to be the problem
Image

Steps to Reproduce

  1. Use version 0.6.6
  2. Connect to openrouter (https://openrouter.ai/api/v1) using the openai api
  3. Attempt to chat with a model, I was using Gemini 2.0 flash lite

Logs & Screenshots

OpenRouter heartbeat in stream:
Image

Error message in the UI: SyntaxError: Unexpected token 'd', "data: {"id"... is not valid JSON

Additional Information

No response

Originally created by @harrismcc on GitHub (May 6, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/13541 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.6 ### Ollama Version (if applicable) _No response_ ### Operating System Linux (NixOs) ### Browser (if applicable) _No response_ ### 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 listed steps to reproduce the bug in detail. ### Expected Behavior Using Openrouter should work, like it did in previous versions ### Actual Behavior When using Openrouter, any chat throws the error `SyntaxError: Unexpected token 'd', "data: {"id"... is not valid JSON` Looking in the browser network tab, I'm seeing these openrouter heartbeats that seem to be the problem ![Image](https://github.com/user-attachments/assets/373b3476-3a8f-47c3-be3e-893499d5532d) ### Steps to Reproduce 1. Use version 0.6.6 2. Connect to openrouter (https://openrouter.ai/api/v1) using the openai api 3. Attempt to chat with a model, I was using Gemini 2.0 flash lite ### Logs & Screenshots OpenRouter heartbeat in stream: ![Image](https://github.com/user-attachments/assets/84ad5a13-8a42-4a03-8b0a-81d9264bb8e0) Error message in the UI: `SyntaxError: Unexpected token 'd', "data: {"id"... is not valid JSON` ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-15 12:10:11 -05:00
Author
Owner

@cpwan commented on GitHub (May 6, 2025):

Similar issue, not sure if they have the same root.

I am using 0.6.5
when accessing with http, i see the chat stream with http. (No problem, can stream normally with local model)
when accessing with https, i see the chat stream with websocket and keeps throwing in the console with the following

WebSocket connection to 'wss://local_ip:custom_https_port/ws/socket.io/?EIO=4&transport=websocket' failed:

the UI shows

Image

<!-- gh-comment-id:2853148202 --> @cpwan commented on GitHub (May 6, 2025): Similar issue, not sure if they have the same root. I am using 0.6.5 when accessing with http, i see the chat stream with http. (No problem, can stream normally with local model) when accessing with https, i see the chat stream with websocket and keeps throwing in the console with the following ``` WebSocket connection to 'wss://local_ip:custom_https_port/ws/socket.io/?EIO=4&transport=websocket' failed: ``` the UI shows ![Image](https://github.com/user-attachments/assets/004785aa-0fdc-4958-a0d4-06d4d89b5004)
Author
Owner

@cpwan commented on GitHub (May 6, 2025):

It can be this https://github.com/open-webui/open-webui/discussions/13140

<!-- gh-comment-id:2853151947 --> @cpwan commented on GitHub (May 6, 2025): It can be this https://github.com/open-webui/open-webui/discussions/13140
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#87684