[GH-ISSUE #9638] google pse search || duckduckgo Error searching #15591

Closed
opened 2026-04-19 21:45:37 -05:00 by GiteaMirror · 0 comments
Owner

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

  • [ ] I have read and followed all the instructions provided in the README.md.
  • [ ] I am on the latest version of both Open WebUI and Ollama.
  • [ ] I have included the Docker container logs.

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. :))

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 - [✅ ] I have read and followed all the instructions provided in the README.md. - [✅ ] I am on the latest version of both Open WebUI and Ollama. - [✅ ] I have included the Docker container logs. ### 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> 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. :))
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15591