mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[GH-ISSUE #10986] Web search fails with SearXNG integration: Empty q parameter causes 400 error #70705
Reference in New Issue
Block a user
Originally created by @rogen84 on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10986
Bug Report
Description
When Open-WebUI is configured to use SearXNG as the search engine, all web search requests fail. The backend logs show a
400 BAD REQUESTerror from SearXNG due to an emptyqparameter in the request URL.Steps to Reproduce
http://searxng:8080/search?q=<query>).Expected Behavior
Open-WebUI should pass the user’s search query (e.g.,
"latest news") to SearXNG via theqparameter, generating a valid URL likehttp://searxng:8080/search?q=latest+news.Actual Behavior
The
qparameter in the SearXNG request URL is always empty (q=), resulting in a400error. Key log snippet:Impact
Environment
http://searxng:8080http://searxng:8080/search?q=testreturns valid results).Additional Context
@rgaricano commented on GitHub (Feb 28, 2025):
do you added "- json" to your searxng settings.yml?
&
could you test with
http://searxng:8080/searxng/search?q=<query>as searxng URL on openwebui search settings?