Help! SearXNG JsonDecodeError 400 #3718

Closed
opened 2025-11-11 15:37:57 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Aoan2011 on GitHub (Feb 9, 2025).

Whenever i use the internet search, it will say error. and docker have these logs.
Traceback (most recent call last):
2025-02-09 18:25:34 File "/app/backend/open_webui/routers/retrieval.py", line 1268, in process_web_search
2025-02-09 18:25:34 web_results = search_web(
2025-02-09 18:25:34 ^^^^^^^^^^^
2025-02-09 18:25:34 File "/app/backend/open_webui/routers/retrieval.py", line 1123, in search_web
2025-02-09 18:25:34 return search_searxng(
2025-02-09 18:25:34 ^^^^^^^^^^^^^^^
2025-02-09 18:25:34 File "/app/backend/open_webui/retrieval/web/searxng.py", line 81, in search_searxng
2025-02-09 18:25:34 json_response = response.json()
2025-02-09 18:25:34 ^^^^^^^^^^^^^^^
2025-02-09 18:25:34 File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 978, in json
2025-02-09 18:25:34 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
2025-02-09 18:25:34 requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2025-02-09 18:25:34
2025-02-09 18:25:34 During handling of the above exception, another exception occurred:
2025-02-09 18:25:34
2025-02-09 18:25:34 Traceback (most recent call last):
2025-02-09 18:25:34 File "/app/backend/open_webui/utils/middleware.py", line 429, in chat_web_search_handler
2025-02-09 18:25:34 results = await loop.run_in_executor(
2025-02-09 18:25:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-09 18:25:34 File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
2025-02-09 18:25:34 result = self.fn(*self.args, **self.kwargs)
2025-02-09 18:25:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-09 18:25:34 File "/app/backend/open_webui/utils/middleware.py", line 431, in
2025-02-09 18:25:34 lambda: process_web_search(
2025-02-09 18:25:34 ^^^^^^^^^^^^^^^^^^^
2025-02-09 18:25:34 File "/app/backend/open_webui/routers/retrieval.py", line 1274, in process_web_search
2025-02-09 18:25:34 raise HTTPException(
2025-02-09 18:25:34 fastapi.exceptions.HTTPException: 400: Expecting value: line 1 column 1 (char 0)
How could i do?Please

Originally created by @Aoan2011 on GitHub (Feb 9, 2025). Whenever i use the internet search, it will say error. and docker have these logs. Traceback (most recent call last): 2025-02-09 18:25:34 File "/app/backend/open_webui/routers/retrieval.py", line 1268, in process_web_search 2025-02-09 18:25:34 web_results = search_web( 2025-02-09 18:25:34 ^^^^^^^^^^^ 2025-02-09 18:25:34 File "/app/backend/open_webui/routers/retrieval.py", line 1123, in search_web 2025-02-09 18:25:34 return search_searxng( 2025-02-09 18:25:34 ^^^^^^^^^^^^^^^ 2025-02-09 18:25:34 File "/app/backend/open_webui/retrieval/web/searxng.py", line 81, in search_searxng 2025-02-09 18:25:34 json_response = response.json() 2025-02-09 18:25:34 ^^^^^^^^^^^^^^^ 2025-02-09 18:25:34 File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 978, in json 2025-02-09 18:25:34 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 2025-02-09 18:25:34 requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2025-02-09 18:25:34 2025-02-09 18:25:34 During handling of the above exception, another exception occurred: 2025-02-09 18:25:34 2025-02-09 18:25:34 Traceback (most recent call last): 2025-02-09 18:25:34 File "/app/backend/open_webui/utils/middleware.py", line 429, in chat_web_search_handler 2025-02-09 18:25:34 results = await loop.run_in_executor( 2025-02-09 18:25:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-09 18:25:34 File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run 2025-02-09 18:25:34 result = self.fn(*self.args, **self.kwargs) 2025-02-09 18:25:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-09 18:25:34 File "/app/backend/open_webui/utils/middleware.py", line 431, in <lambda> 2025-02-09 18:25:34 lambda: process_web_search( 2025-02-09 18:25:34 ^^^^^^^^^^^^^^^^^^^ 2025-02-09 18:25:34 File "/app/backend/open_webui/routers/retrieval.py", line 1274, in process_web_search 2025-02-09 18:25:34 raise HTTPException( 2025-02-09 18:25:34 fastapi.exceptions.HTTPException: 400: Expecting value: line 1 column 1 (char 0) How could i do?Please
Author
Owner

@Aoan2011 commented on GitHub (Feb 9, 2025):

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

@Aoan2011 commented on GitHub (Feb 9, 2025): 这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3718