[GH-ISSUE #8503] Failed Web Search with DuckDuckGo in OpenWebui v0.5.4 Due to "ValueError: subsection not found" #30677

Closed
opened 2026-04-25 04:56:33 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @JasmondL on GitHub (Jan 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8503

Bug Report

Installation Method

Instance is create via docker compose. The Docker container version is :main branch with open-webui v0.5.4

Environment

  • Open WebUI Version: v0.5.4 (I see the same issue starting from v0.5.1) on Docker :main
  • Operating System: macOS Sequoia, Ubuntu 22.04.5 LTS
  • Browser (if applicable): Chrome Version 131.0.6778.265 (Official Build) (arm64)

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.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

OpenWebui should complete the query from DuckDuckGo and provide an optimal result.

Actual Behavior:

See Logs and Screenshots

Description

Bug Summary:
During web search functionality within OpenWebui version 0.5.4 using DuckDuckGo as the search engine, a critical error arises when attempting to extract relevant data from the search results. The error persists at the _text_extract_json() stage and is attributed to a ValueError: subsection not found exception.

Reproduction Details

Steps to Reproduce:

  1. Enable duckduckgo as search engine.
  2. Create a simple query, enable Web Search and search.

Logs and Screenshots

Docker Container Logs:
Snippet of the error below. The full logs is here. log.txt

Traceback (most recent call last):
  File "/app/backend/open_webui/utils/middleware.py", line 421, 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 423, in <lambda>
    lambda: process_web_search(
            ^^^^^^^^^^^^^^^^^^^
  File "/app/backend/open_webui/routers/retrieval.py", line 1254, in process_web_search
    raise HTTPException(
fastapi.exceptions.HTTPException: 400: _text_extract_json() keywords='Singapore monsoon period 2025' ValueError: subsection not found

Screenshots/Screen Recordings (if applicable):
Screenshot 2025-01-13 at 11 05 01 AM

Originally created by @JasmondL on GitHub (Jan 13, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/8503 # Bug Report ## Installation Method Instance is create via docker compose. The Docker container version is :main branch with open-webui v0.5.4 ## Environment - **Open WebUI Version:** v0.5.4 (I see the same issue starting from v0.5.1) on Docker :main - **Operating System:** macOS Sequoia, Ubuntu 22.04.5 LTS - **Browser (if applicable):** Chrome Version 131.0.6778.265 (Official Build) (arm64) **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: OpenWebui should complete the query from DuckDuckGo and provide an optimal result. ## Actual Behavior: See [Logs and Screenshots](#logs-and-screenshots) ## Description **Bug Summary:** During web search functionality within OpenWebui version 0.5.4 using DuckDuckGo as the search engine, a critical error arises when attempting to extract relevant data from the search results. The error persists at the `_text_extract_json()` stage and is attributed to a `ValueError: subsection not found exception`. ## Reproduction Details **Steps to Reproduce:** 1. Enable duckduckgo as search engine. 2. Create a simple query, enable `Web Search` and search. ## Logs and Screenshots **Docker Container Logs:** Snippet of the error below. The full logs is here. [log.txt](https://github.com/user-attachments/files/18392313/log.txt) ```python Traceback (most recent call last): File "/app/backend/open_webui/utils/middleware.py", line 421, 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 423, in <lambda> lambda: process_web_search( ^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/routers/retrieval.py", line 1254, in process_web_search raise HTTPException( fastapi.exceptions.HTTPException: 400: _text_extract_json() keywords='Singapore monsoon period 2025' ValueError: subsection not found ``` **Screenshots/Screen Recordings (if applicable):** ![Screenshot 2025-01-13 at 11 05 01 AM](https://github.com/user-attachments/assets/d072f52e-b0a4-48fd-84f7-7709fff96bd0)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#30677