mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #24198] issue: bug: SearXNG search fails when multiple languages selected (trailing comma in language parameter) #58895
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 @jgfzzzu-cmd on GitHub (Apr 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24198
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.x (latest main)
Ollama Version (if applicable)
ollama version is 0.21.2
Operating System
CachyOS Linux (Arch-based)
Browser (if applicable)
Firefox 150.0
Confirmation
README.md.Expected Behavior
SearXNG receives a valid language parameter without trailing comma, e.g. language=de,en,es
Actual Behavior
Open WebUI sends language=de,en,es, (trailing comma) when multiple languages are selected in the UI. SearXNG rejects this with: {"error": "Invalid value de,en,es, for parameter language"} and returns HTTP 400.
Steps to Reproduce
Logs & Screenshots
ERROR open_webui.routers.retrieval:process_web_search - 400 Client Error: Bad Request for url: http://localhost:8888/search?q=...&language=de%2Cen%2Ces%2C
Additional Information
Workaround: set language to "all". Related issue: #16766
@PHclaw commented on GitHub (Apr 29, 2026):
PR #24209 fixes the trailing comma issue in SearXNG language parameter. The fix strips the trailing comma before sending the language list to SearXNG.
https://github.com/open-webui/open-webui/pull/24209