issue: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data on Web Search (or big attachments) #4426

Closed
opened 2025-11-11 15:53:47 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @peperunas on GitHub (Mar 14, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

0.5.20

Ollama Version (if applicable)

0.6.0

Operating System

NixOS

Browser (if applicable)

Firefox / Safari

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

No error dialog shown.

Actual Behavior

Whenever web search is enabled - the UI shows the parsing error after the search result are found.

This does not stop the embedding process and subsequent answer. The notice stays there but any progress report (thinking... or whatever other indicator) are not shown.


The error happens here:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data [index.ts:573:11](https://example.com/src/lib/apis/index.ts)

Steps to Reproduce

  • Enable Web Search.
  • Prompt to search whatever

Logs & Screenshots

While searching:

Image

After search is completed:

Image

Still searching with error:

Image

Additional Information

No response

Originally created by @peperunas on GitHub (Mar 14, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version 0.5.20 ### Ollama Version (if applicable) 0.6.0 ### Operating System NixOS ### Browser (if applicable) Firefox / Safari ### 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 No error dialog shown. ### Actual Behavior Whenever web search is enabled - the UI shows the parsing error _after_ the search result are found. This does not stop the embedding process and subsequent answer. The notice stays there but any progress report (thinking... or whatever other indicator) are not shown. ---- The error happens here: ``` SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data [index.ts:573:11](https://example.com/src/lib/apis/index.ts) ``` ### Steps to Reproduce - Enable Web Search. - Prompt to search _whatever_ ### Logs & Screenshots While searching: <img width="1053" alt="Image" src="https://github.com/user-attachments/assets/60452223-3e2e-4a7a-9060-81c5b0da2d51" /> ---- After search is completed: <img width="1161" alt="Image" src="https://github.com/user-attachments/assets/15ab1524-775a-4cd1-8d52-e33f8fdf871d" /> ---- Still searching with error: <img width="1161" alt="Image" src="https://github.com/user-attachments/assets/b8ebe7d0-b9a0-4350-8ad1-21ee3c9aa784" /> ---- ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 15:53:47 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4426