[GH-ISSUE #12566] issue: searxng "No search results found" #32171

Closed
opened 2026-04-25 06:03:33 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ALIENvsROBOT on GitHub (Apr 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12566

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

0.6.2

Ollama Version (if applicable)

0.6.4

Operating System

ubuntu 24.04

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

To search in internet and provide context regarding the search fo rthe LLM model

Actual Behavior

search tool always gives No search results found as the resonse. I tried various method for using searxng but nothing worked.

Steps to Reproduce

follower instruction on open-webui searxng tutorial.

Logs & Screenshots

Docker logs:

await self.app(scope, receive_or_disconnect, send_no_error)

      │    │   │      │                      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f6a09126980>

      │    │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      │    └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6a0aa96190>

      └ <open_webui.main.RedirectMiddleware object at 0x7f6a0a1c5050>

File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call

await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)

      │                            │    │    │     │      │        └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f6a09126980>

      │                            │    │    │     │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │                            │    │    │     └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      │                            │    │    └ <starlette.requests.Request object at 0x7f6a00372a10>

      │                            │    └ <fastapi.routing.APIRouter object at 0x7f6a8350d0d0>

      │                            └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6a0aa96190>

      └ <function wrap_app_handling_exceptions at 0x7f6ba4b49940>

File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

await app(scope, receive, sender)

      │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0>

      │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      └ <fastapi.routing.APIRouter object at 0x7f6a8350d0d0>

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call

await self.middleware_stack(scope, receive, send)

      │    │                │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0>

      │    │                │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │    │                └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      │    └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f6a8350d0d0>>

      └ <fastapi.routing.APIRouter object at 0x7f6a8350d0d0>

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app

await route.handle(scope, receive, send)

      │     │      │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0>

      │     │      │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │     │      └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      │     └ <function Route.handle at 0x7f6ba4b4afc0>

      └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle

await self.app(scope, receive, send)

      │    │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0>

      │    │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │    │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      │    └ <function request_response.<locals>.app at 0x7f6a0a1ed300>

      └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST'])

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app

await wrap_app_handling_exceptions(app, request)(scope, receive, send)

      │                            │    │        │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0>

      │                            │    │        │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │                            │    │        └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      │                            │    └ <starlette.requests.Request object at 0x7f6a00370590>

      │                            └ <function request_response.<locals>.app.<locals>.app at 0x7f6a09125760>

      └ <function wrap_app_handling_exceptions at 0x7f6ba4b49940>

File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

await app(scope, receive, sender)

      │   │      │        └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091277e0>

      │   │      └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60>

      │   └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c...

      └ <function request_response.<locals>.app.<locals>.app at 0x7f6a09125760>

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app

response = await f(request)

                 │ └ <starlette.requests.Request object at 0x7f6a00370590>

                 └ <function get_request_handler.<locals>.app at 0x7f6a0a1ed440>

File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app

raw_response = await run_endpoint_function(

                     └ <function run_endpoint_function at 0x7f6ba4b7ce00>

File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function

return await dependant.call(**values)

             │         │      └ {'user': UserModel(id='33c6d9ce-4866-4166-a1d3-4b2ca8c6bc64', name='Gowtham Sridhar', email='gowtham.sridhar@ait.ac.at', role...

             │         └ <function chat_completion at 0x7f6a0a2defc0>

             └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant...

File "/app/backend/open_webui/main.py", line 1105, in chat_completion

form_data, metadata, events = await process_chat_payload(

│          │                        └ <function process_chat_payload at 0x7f6a837fcfe0>

│          └ {'user_id': '33c6d9ce-4866-4166-a1d3-4b2ca8c6bc64', 'chat_id': '4e263d07-dbea-47ba-9d4d-a5d96b4edaea', 'message_id': '98d4c1e...

└ {'stream': True, 'model': 'qwen2.5:7b-instruct', 'messages': [{'role': 'user', 'content': '1 euro in rupee'}], 'metadata': {'...

File "/app/backend/open_webui/utils/middleware.py", line 805, in process_chat_payload

form_data = await chat_web_search_handler(

                  └ <function chat_web_search_handler at 0x7f6a837fc400>

File "/app/backend/open_webui/utils/middleware.py", line 388, in chat_web_search_handler

results = await process_web_search(

                └ <function process_web_search at 0x7f6a8952e660>

File "/app/backend/open_webui/routers/retrieval.py", line 1459, in process_web_search

raise HTTPException(

      └ <class 'fastapi.exceptions.HTTPException'>

fastapi.exceptions.HTTPException: 400: 403 Client Error: FORBIDDEN for url: http://host.docker.internal:32768/search?q=current+exchange+rate+euro+to+indian+rupee&format=json&pageno=1&safesearch=1&language=en-US&time_range=&categories=&theme=simple&image_proxy=0

Console:

"5c83c00e-9b47-4327-b817-c4759abcf598": {
"parentId": "463917a8-205c-4ac1-8e31-b28b32d0d823",
"id": "5c83c00e-9b47-4327-b817-c4759abcf598",
"childrenIds": [],
"role": "assistant",
"content": "The exchange rate between euros (EUR) and Indian Rupees (INR) fluctuates daily based on market conditions. As of my last update in 2023, I can provide you with an approximate conversion rate. However, for the most accurate and up-to-date information, please check a reliable financial news source or a currency converter website.\n\nAs an example, if 1 EUR is approximately equal to 85 INR (this is a hypothetical value as actual rates change), then:\n\n1 Euro ≈ 85 Indian Rupees\n\nTo get the current rate, you can use an online currency converter.",
"model": "qwen2.5:7b-instruct",
"modelName": "qwen2.5 (Chat / Query)",
"modelIdx": 0,
"userContext": null,
"timestamp": 1744028622,
"statusHistory": [
{
"action": "web_search",
"description": "Generating search query",
"done": false
},
{
"action": "web_search",
"description": "Searching "{{searchQuery}}"",
"query": "1 euro to indian rupee",
"done": false
},
{
"action": "web_search",
"description": "Error searching "{{searchQuery}}"",
"query": "1 euro to indian rupee",
"done": true,
"error": true
},
{
"action": "web_search",
"description": "No search results found",
"done": true,
"error": true
}
],

Additional Information

No response

Originally created by @ALIENvsROBOT on GitHub (Apr 7, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12566 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version 0.6.2 ### Ollama Version (if applicable) 0.6.4 ### Operating System ubuntu 24.04 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior To search in internet and provide context regarding the search fo rthe LLM model ### Actual Behavior search tool always gives No search results found as the resonse. I tried various method for using searxng but nothing worked. ### Steps to Reproduce follower instruction on open-webui searxng tutorial. ### Logs & Screenshots Docker logs: await self.app(scope, receive_or_disconnect, send_no_error) │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f6a09126980> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6a0aa96190> └ <open_webui.main.RedirectMiddleware object at 0x7f6a0a1c5050> File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) │ │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x7f6a09126980> │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... │ │ │ └ <starlette.requests.Request object at 0x7f6a00372a10> │ │ └ <fastapi.routing.APIRouter object at 0x7f6a8350d0d0> │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f6a0aa96190> └ <function wrap_app_handling_exceptions at 0x7f6ba4b49940> File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0> │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... └ <fastapi.routing.APIRouter object at 0x7f6a8350d0d0> File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__ await self.middleware_stack(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f6a8350d0d0>> └ <fastapi.routing.APIRouter object at 0x7f6a8350d0d0> File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app await route.handle(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... │ └ <function Route.handle at 0x7f6ba4b4afc0> └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST']) File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle await self.app(scope, receive, send) │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0> │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... │ └ <function request_response.<locals>.app at 0x7f6a0a1ed300> └ APIRoute(path='/api/chat/completions', name='chat_completion', methods=['POST']) File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) │ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091247c0> │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... │ │ └ <starlette.requests.Request object at 0x7f6a00370590> │ └ <function request_response.<locals>.app.<locals>.app at 0x7f6a09125760> └ <function wrap_app_handling_exceptions at 0x7f6ba4b49940> File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x7f6a091277e0> │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x7f6a09125c60> │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('10.88.0.10', 8080), 'c... └ <function request_response.<locals>.app.<locals>.app at 0x7f6a09125760> File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app response = await f(request) │ └ <starlette.requests.Request object at 0x7f6a00370590> └ <function get_request_handler.<locals>.app at 0x7f6a0a1ed440> File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app raw_response = await run_endpoint_function( └ <function run_endpoint_function at 0x7f6ba4b7ce00> File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function return await dependant.call(**values) │ │ └ {'user': UserModel(id='33c6d9ce-4866-4166-a1d3-4b2ca8c6bc64', name='Gowtham Sridhar', email='gowtham.sridhar@ait.ac.at', role... │ └ <function chat_completion at 0x7f6a0a2defc0> └ Dependant(path_params=[], query_params=[], header_params=[], cookie_params=[], body_params=[ModelField(field_info=Body(Pydant... File "/app/backend/open_webui/main.py", line 1105, in chat_completion form_data, metadata, events = await process_chat_payload( │ │ └ <function process_chat_payload at 0x7f6a837fcfe0> │ └ {'user_id': '33c6d9ce-4866-4166-a1d3-4b2ca8c6bc64', 'chat_id': '4e263d07-dbea-47ba-9d4d-a5d96b4edaea', 'message_id': '98d4c1e... └ {'stream': True, 'model': 'qwen2.5:7b-instruct', 'messages': [{'role': 'user', 'content': '1 euro in rupee'}], 'metadata': {'... File "/app/backend/open_webui/utils/middleware.py", line 805, in process_chat_payload form_data = await chat_web_search_handler( └ <function chat_web_search_handler at 0x7f6a837fc400> > File "/app/backend/open_webui/utils/middleware.py", line 388, in chat_web_search_handler results = await process_web_search( └ <function process_web_search at 0x7f6a8952e660> File "/app/backend/open_webui/routers/retrieval.py", line 1459, in process_web_search raise HTTPException( └ <class 'fastapi.exceptions.HTTPException'> fastapi.exceptions.HTTPException: 400: 403 Client Error: FORBIDDEN for url: http://host.docker.internal:32768/search?q=current+exchange+rate+euro+to+indian+rupee&format=json&pageno=1&safesearch=1&language=en-US&time_range=&categories=&theme=simple&image_proxy=0 Console: "5c83c00e-9b47-4327-b817-c4759abcf598": { "parentId": "463917a8-205c-4ac1-8e31-b28b32d0d823", "id": "5c83c00e-9b47-4327-b817-c4759abcf598", "childrenIds": [], "role": "assistant", "content": "The exchange rate between euros (EUR) and Indian Rupees (INR) fluctuates daily based on market conditions. As of my last update in 2023, I can provide you with an approximate conversion rate. However, for the most accurate and up-to-date information, please check a reliable financial news source or a currency converter website.\n\nAs an example, if 1 EUR is approximately equal to 85 INR (this is a hypothetical value as actual rates change), then:\n\n1 Euro ≈ 85 Indian Rupees\n\nTo get the current rate, you can use an online currency converter.", "model": "qwen2.5:7b-instruct", "modelName": "qwen2.5 (Chat / Query)", "modelIdx": 0, "userContext": null, "timestamp": 1744028622, "statusHistory": [ { "action": "web_search", "description": "Generating search query", "done": false }, { "action": "web_search", "description": "Searching \"{{searchQuery}}\"", "query": "1 euro to indian rupee", "done": false }, { "action": "web_search", "description": "Error searching \"{{searchQuery}}\"", "query": "1 euro to indian rupee", "done": true, "error": true }, { "action": "web_search", "description": "No search results found", "done": true, "error": true } ], ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 06:03:33 -05:00
Author
Owner

@FooleanBool commented on GitHub (Apr 7, 2025):

I have to bypass embedding and retrieval for searxng to return results. Someone recommended resetting knowledge, but I haven't tested yet.

[edit]
After resetting knowledge base, I can now use embedding and retrieval with searxng.

<!-- gh-comment-id:2783860362 --> @FooleanBool commented on GitHub (Apr 7, 2025): I have to bypass embedding and retrieval for searxng to return results. Someone recommended resetting knowledge, but I haven't tested yet. [edit] After resetting knowledge base, I can now use embedding and retrieval with searxng.
Author
Owner

@tjbck commented on GitHub (Apr 7, 2025):

Unable to reproduce on our end, keep us updated!

<!-- gh-comment-id:2784414903 --> @tjbck commented on GitHub (Apr 7, 2025): Unable to reproduce on our end, keep us updated!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#32171