mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
Web search fails with SearXNG integration: Empty q parameter causes 400 error #4210
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rogen84 on GitHub (Feb 28, 2025).
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?