mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #9638] google pse search || duckduckgo Error searching #15591
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 @aaronyyan on GitHub (Feb 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9638
Installation Method
OrbStack
Environment
Open WebUI Version: v0.5.10
Ollama Version: 0.5.7
Operating System: MacBook Pro Apple M1 Pro 15.3 (24D60)
Confirmation
Expected Behavior
Searching can be done using the
Description
Bug Summary
I've already set up google pse, but when searching it still shows error search, I've already set up google pse, but when searching it still shows error search.
Steps to Reproduce:
set google pse, enabled web search , and use it.
Logs and Screenshots
Docker Container Logs
`INFO: 192.168.215.1:60786 - "POST /api/v1/chats/new HTTP/1.1" 200 OK
INFO: 192.168.215.1:60786 - "GET /api/v1/chats/?page=2 HTTP/1.1" 200 OK
INFO: 192.168.215.1:60786 - "POST /api/v1/chats/64a6c43a-58d5-4bc7-b042-687aa2ccdd02 HTTP/1.1" 200 OK
INFO: 192.168.215.1:60786 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:60786 - "POST /api/v1/memories/query HTTP/1.1" 200 OK
INFO: 192.168.215.1:60786 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:60788 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:46202 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
INFO: 192.168.215.1:46204 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
INFO: 192.168.215.1:45436 - "POST /api/v1/tasks/auto/completions HTTP/1.1" 200 OK
INFO [open_webui.routers.retrieval] save_docs_to_vector_db: document web-search-5cb42a78694474343a12ccc415bed2a3926e6c79482bfb9017c6
ERROR [open_webui.routers.retrieval] The content provided is empty. Please ensure that there is text or data present before proceeding.
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 1295, in process_web_search
save_docs_to_vector_db(
File "/app/backend/open_webui/routers/retrieval.py", line 729, in save_docs_to_vector_db
raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)
ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.
ERROR [open_webui.utils.middleware] 400: [ERROR: The content provided is empty. Please ensure that there is text or data present before proceeding.]
Traceback (most recent call last):
File "/app/backend/open_webui/routers/retrieval.py", line 1295, in process_web_search
save_docs_to_vector_db(
File "/app/backend/open_webui/routers/retrieval.py", line 729, in save_docs_to_vector_db
raise ValueError(ERROR_MESSAGES.EMPTY_CONTENT)
ValueError: The content provided is empty. Please ensure that there is text or data present before proceeding.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/backend/open_webui/utils/middleware.py", line 429, in chat_web_search_handler
results = await loop.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/utils/middleware.py", line 431, in
lambda: process_web_search(
^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/routers/retrieval.py", line 1306, in process_web_search
raise HTTPException(
fastapi.exceptions.HTTPException: 400: [ERROR: The content provided is empty. Please ensure that there is text or data present before proceeding.]
INFO: 192.168.215.1:60788 - "POST /api/chat/completions HTTP/1.1" 200 OK
INFO: 192.168.215.1:60788 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:39332 - "POST /api/chat/completed HTTP/1.1" 200 OK
INFO: 192.168.215.1:39332 - "POST /api/v1/chats/64a6c43a-58d5-4bc7-b042-687aa2ccdd02 HTTP/1.1" 200 OK
INFO: 192.168.215.1:39332 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:40242 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:40254 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:40242 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 192.168.215.1:42646 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
INFO: 192.168.215.1:42644 - "GET /api/v1/chats/64a6c43a-58d5-4bc7-b042-687aa2ccdd02 HTTP/1.1" 200 OK
INFO: 192.168.215.1:42670 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
INFO: 192.168.215.1:42644 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
`
Note
I'm from China and I'm sure the internet is fine. :))