mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
web search searxng issue #4068
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 @michaelsit2222 on GitHub (Feb 23, 2025).
Bug Report
Important Notes
Before submitting a bug report: Please check the Issues or Discussions section to see if a similar issue or feature request has already been posted. It's likely we're already tracking it! If you’re unsure, start a discussion post first. This will help us efficiently focus on improving the project.
Collaborate respectfully: We value a constructive attitude, so please be mindful of your communication. If negativity is part of your approach, our capacity to engage may be limited. We’re here to help if you’re open to learning and communicating positively. Remember, Open WebUI is a volunteer-driven project managed by a single maintainer and supported by contributors who also have full-time jobs. We appreciate your time and ask that you respect ours.
Contributing: If you encounter an issue, we highly encourage you to submit a pull request or fork the project. We actively work to prevent contributor burnout to maintain the quality and continuity of Open WebUI.
Bug reproducibility: If a bug cannot be reproduced with a
:mainor:devDocker setup, or a pip install with Python 3.11, it may require additional help from the community. In such cases, we will move it to the "issues" Discussions section due to our limited resources. We encourage the community to assist with these issues. Remember, it’s not that the issue doesn’t exist; we need your help!Note: Please remove the notes above when submitting your post. Thank you for your understanding and support!
Installation Method
pip
Environment
**Open WebUI Version: latest version
**Ollama (if applicable): latest version
**Operating System: windows 10
**Browser (if applicable): chrome and firefox
Confirmation:
Expected Behavior:
ive installed searxng using docker it works fine in browser tried to use it with searchweb in openwebui and it worked good for couple of prompts then stopped working spitting in console bunch of errors (ive added the logs)
[Describe what you expected to happen.]
web search to work as it was for couple tries
Actual Behavior:
webui showing 0 results in websearch and console outpot a lot of errors
[Describe what actually happened.]
Description
Bug Summary:
[Provide a brief but clear summary of the bug]
Reproduction Details
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Logs and Screenshots
openwebui console logs:
ERROR [open_webui.routers.retrieval] No connection adapters were found for 'localhost:8080'
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1342, in process_web_search
web_results = search_web(
^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1175, in search_web
return search_searxng(
^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\retrieval\web\searxng.py", line 67, in search_searxng
response = requests.get(
^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 697, in send
adapter = self.get_adapter(url=request.url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:8080'
ERROR [open_webui.utils.middleware] 400: No connection adapters were found for 'localhost:8080'
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1342, in process_web_search
web_results = search_web(
^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1175, in search_web
return search_searxng(
^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\retrieval\web\searxng.py", line 67, in search_searxng
response = requests.get(
^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 697, in send
adapter = self.get_adapter(url=request.url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:8080'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\utils\middleware.py", line 340, in chat_web_search_handler
results = await process_web_search(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1348, in process_web_search
raise HTTPException(
fastapi.exceptions.HTTPException: 400: No connection adapters were found for 'localhost:8080'
ERROR [open_webui.routers.retrieval] No connection adapters were found for 'localhost:8080'
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1342, in process_web_search
web_results = search_web(
^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1175, in search_web
return search_searxng(
^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\retrieval\web\searxng.py", line 67, in search_searxng
response = requests.get(
^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 697, in send
adapter = self.get_adapter(url=request.url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:8080'
ERROR [open_webui.utils.middleware] 400: No connection adapters were found for 'localhost:8080'
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1342, in process_web_search
web_results = search_web(
^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1175, in search_web
return search_searxng(
^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\retrieval\web\searxng.py", line 67, in search_searxng
response = requests.get(
^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 697, in send
adapter = self.get_adapter(url=request.url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:8080'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\utils\middleware.py", line 340, in chat_web_search_handler
results = await process_web_search(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Michael\AppData\Local\Programs\Python\Python312\Lib\site-packages\open_webui\routers\retrieval.py", line 1348, in process_web_search
raise HTTPException(
fastapi.exceptions.HTTPException: 400: No connection adapters were found for 'localhost:8080'
Browser Console Logs:
[Include relevant browser console logs, if applicable]
no errors in browser console
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
docker didnt outpot any errors
Screenshots/Screen Recordings (if applicable):
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
i didnt do anything special just added searxng to open webui it worked for couple prompts then stopped searching
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!