mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-25 17:21:00 -05:00
Docker CPU version cannot chat with models added via a connection except local models - SyntaxError: Unexpected token 'd', "data: {"id"... is not valid JSON #3861
Reference in New Issue
Block a user
Originally created by @honourworldng on GitHub (Feb 15, 2025).
Installation Method
I followed the docker installation having ollama already installed on my macbook pro m1
Environment
Open WebUI Version: [e.g., v0.5.11]
Operating System: macOS Sequoia 15.3
Browser (if applicable): Chrome 133
Confirmation:
Expected Behavior:
Before I updated my docker container of openwebui using watch tower, I was able to chaat with an external model. Previously, i was using groq, now it is not longer working, I also tried to remove the connection and re-add it, but also didn't work. I have also tried open ai connection which can be seen from the screenshot but also got the same error.
Reproduction Details
Steps to Reproduce:
Do a fresh installation of the docker CPU version and add a connection in admin panel settings, try using one of the external models from the connection.
@honourworldng commented on GitHub (Feb 15, 2025):
I just found out that it works on Safari browser, so something is wrong somewhere
@hh1599 commented on GitHub (Feb 15, 2025):
good catch. I just tried on my phone and it worked. No sure why the desktop browser isnt working but clearing my cache didnt help. using brave if it matters.
@magnacartatron commented on GitHub (Feb 15, 2025):
For me this is happening on macOS on every device running it. I've upgraded Ollama to latest version and reinstalled open-webui on 3 macOS devices twice. Lost all my config and settings but whatever.
I'm getting the same error for any request, whether to Ollama running locally or OpenAI. It's completely broken.
On chrome at least I can log in and access it, on Safari it goes to a blank page every time.
I've installed using conda env instructions with pip. Recreated multiple new environments to test it in. Nada
I can see that the generation is happening so it connects just fine to Ollama.
E.g. here's the data for a response sent via web sockets.
But the error is always
SyntaxError: Unexpected token 'd', "data: {"id"... is not valid JSON@honourworldng commented on GitHub (Feb 15, 2025):
I just tried to delete chrome completely, restarted the system and installed google chrome again afresh, it worked as expected with no issues
@tjbck commented on GitHub (Feb 16, 2025):
WebSocket/Browser Cache issue.
Related: https://github.com/open-webui/open-webui/issues/8074
@magnacartatron commented on GitHub (Feb 16, 2025):
This doesn't seem to be the issue at all. I've done a fresh install on a brand new machine and I'm getting the same error on macOS. The installation I've used is using conda and pip instructions from your website. The issue persists with the latest version of every browser, Safari, Chrome, Firefox.
@voznik commented on GitHub (Feb 23, 2025):
https://github.com/open-webui/open-webui/issues/9635#issuecomment-2677010167