mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-22 11:44:11 -05:00
[GH-ISSUE #2797] SearXNG web search with openwebui,got this error Expecting value: line 1 column 1 (char 0) #13016
Reference in New Issue
Block a user
Originally created by @KnoxCheung on GitHub (Jun 4, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2797
Expecting value: line 1 column 1 (char 0)
both run on docker
port 3001 for openwebui
port 8080 for searxng
I am a novice of programming ,sorry to bother you guys. Thanks for your help
@justinh-rahb commented on GitHub (Jun 4, 2024):
We've pushed some updates to fix a bad PR merge, re-pull and re-run your container.
@tjbck commented on GitHub (Jun 4, 2024):
Closing this issue, Let us know if the issue persists!
@KnoxCheung commented on GitHub (Jun 4, 2024):
I hv update to 0.2.3, but still the same error
ollama is also the newest version
@tjbck commented on GitHub (Jun 4, 2024):
Try 0.2.4, and let us know if the issue persists!
@KnoxCheung commented on GitHub (Jun 4, 2024):
Sorry to bother you guys,still the same error, i hv updated to 0.2.4,is there something need to be configure in openwebui or searxng?Searxng works fine in localhost:8080.
@tjbck commented on GitHub (Jun 4, 2024):
If both environments are on docker, I don't think the url should be
localhost. Tryhost.docker.internal.@KnoxCheung commented on GitHub (Jun 4, 2024):
It finally works!!! thanks a lot bro.
@cojarbi commented on GitHub (Jun 10, 2024):
Hi guys, having this same issue, im getting that same error with not internet search. using searxng localhost for searxng works fine.
open-webui v0.3.1
Ollama 0.1.42
How did you make it work @KnoxCheung
@KnoxCheung commented on GitHub (Jun 11, 2024):
@cojarbi
@sumansahoo1 commented on GitHub (Jun 13, 2024):
I'm having this error after changing

localhosttohost.docker.internalMy versions are -
@silentoplayz commented on GitHub (Jun 13, 2024):
@suman-somu And are both Open WebUI and Ollama running in Docker for you?
@sumansahoo1 commented on GitHub (Jun 13, 2024):
yep
@cediorio commented on GitHub (Jun 18, 2024):
Did this work for anyone? When I try the
http://host.docker.internal:8000/v1, I get:HTTPConnectionPool(host='host.docker.internal', port=8000): Max retries exceeded with url: /v1?q=test&format=json&pageno=1&safesearch=1&language=en-US&time_range=&categories=&theme=simple&image_proxy=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x735535b5d510>: Failed to establish a new connection: [Errno 111] Connection refused'))I've had the same exact problems noted in this thread: host.docker.internal returns 403, while localhost gives the "Expecting value" error. Both open-webui and searxing running in unmodified docker containers, open-webui:cuda running 0.3.5.
@rwestberg commented on GitHub (Jun 24, 2024):
Looks like the default settings for searxng is to disallow search results in json. I had to edit my settings.yml to add it:
After that the 403 error went away and things seem to work!
@JasonOdinberg commented on GitHub (Dec 16, 2024):
For everyone who gets an error ,you need to edit the settings.yml , given that you've installed searxng with docker, make sure to start the container and then click on it , go to files , etc/searxng/settings.yml (right click and edit file) and the part that you need to change should be around line 78 ,
Additionally inside openwebui ,for Searxng Query URL add
http://host.docker.internal:8080/search?q=<query>