mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[GH-ISSUE #16506] issue: SSE comments are not ignored and cause JSON.parse() to error. #88673
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 @CrushedAsian255 on GitHub (Aug 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16506
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.21
Ollama Version (if applicable)
No response
Operating System
macOS
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Open WebUI ignores SSE comments and keeps waiting for the model to respond.
Actual Behavior
Open WebUI tries to interpret SSE comments as JSON objects, causing it to error when receiving the completion from certain providers.
Steps to Reproduce
Logs & Screenshots
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON dataAdditional Information
To prevent connection time-outs, some providers (notably DeepSeek and OpenRouter) send SSE 'comments'. These comments are formatted as an SSE event with an empty field name (
: OPENROUTER PROCESSINGor: keep-alive). These are not JSON objects and so cause an error if attempted to be read as a JSON object.@CrushedAsian255 commented on GitHub (Aug 11, 2025):
Edit: Didn't realize 0.6.22 just released. Attempting to reproduce.
@tjbck commented on GitHub (Aug 13, 2025):
Unable to reproduce here, keep us updated (with more details)!