[GH-ISSUE #6618] duckduckgo_search.exceptions.RatelimitException: 202 Ratelimit #29955

Closed
opened 2026-04-25 04:18:53 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @wedobetter on GitHub (Oct 31, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6618

Bug Report

Installation Method

Kubernetes (official helm chart)

Environment

  • Open WebUI Version: [e.g., v0.3.11]

  • Ollama (if applicable): [e.g., v0.2.0, v0.1.32-rc1]

  • Operating System: [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04]

  • Browser (if applicable): [e.g., Chrome 100.0, Firefox 98.0]

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 browser console logs.
  • 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:

[Describe what you expected to happen.]

Actual Behavior:

[Describe what actually happened.]

Description

Bug Summary:
Web Search with DuckDuckGo getting rate limited, despite of only sending a single request. I've also tried to set concurrency to 1.

Reproduction Details

Steps to Reproduce:

Logs and Screenshots

https://duckduckgo.com/ 202 Ratelimit

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:

ERROR [open_webui.apps.retrieval.main] https://duckduckgo.com/ 202 Ratelimit
Traceback (most recent call last):
  File "/app/backend/open_webui/apps/retrieval/main.py", line 1146, in process_web_search
    web_results = search_web(
                  ^^^^^^^^^^^
  File "/app/backend/open_webui/apps/retrieval/main.py", line 1109, in search_web
    return search_duckduckgo(
           ^^^^^^^^^^^^^^^^^^
  File "/app/backend/open_webui/apps/retrieval/web/duckduckgo.py", line 27, in search_duckduckgo
    ddgs_gen = ddgs.text(
               ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 240, in text
  File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 274, in _text_api
    assert keywords, "keywords is mandatory"
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 135, in _get_vqd
    def _get_vqd(self, keywords: str) -> str:
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 130, in _get_url
    self._exception_event.set()
        ^^^^^^^^^^^^^^^^^^^^^^^^
duckduckgo_search.exceptions.RatelimitException: https://duckduckgo.com/ 202 Ratelimit
https://duckduckgo.com/ 202 Ratelimit
INFO:     10.10.215.64:0 - "POST /retrieval/api/v1/process/web/search HTTP/1.1" 400 Bad Request

Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

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.]

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!

Originally created by @wedobetter on GitHub (Oct 31, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/6618 # Bug Report ## Installation Method Kubernetes (official helm chart) ## Environment - **Open WebUI Version:** [e.g., v0.3.11] - **Ollama (if applicable):** [e.g., v0.2.0, v0.1.32-rc1] - **Operating System:** [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04] - **Browser (if applicable):** [e.g., Chrome 100.0, Firefox 98.0] **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. - [ ] I have included the browser console logs. - [x] 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: [Describe what you expected to happen.] ## Actual Behavior: [Describe what actually happened.] ## Description **Bug Summary:** Web Search with DuckDuckGo getting rate limited, despite of only sending a single request. I've also tried to set concurrency to 1. ## Reproduction Details **Steps to Reproduce:** ## Logs and Screenshots https://duckduckgo.com/ 202 Ratelimit **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** ``` ERROR [open_webui.apps.retrieval.main] https://duckduckgo.com/ 202 Ratelimit Traceback (most recent call last): File "/app/backend/open_webui/apps/retrieval/main.py", line 1146, in process_web_search web_results = search_web( ^^^^^^^^^^^ File "/app/backend/open_webui/apps/retrieval/main.py", line 1109, in search_web return search_duckduckgo( ^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/apps/retrieval/web/duckduckgo.py", line 27, in search_duckduckgo ddgs_gen = ddgs.text( ^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 240, in text File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 274, in _text_api assert keywords, "keywords is mandatory" ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 135, in _get_vqd def _get_vqd(self, keywords: str) -> str: ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 130, in _get_url self._exception_event.set() ^^^^^^^^^^^^^^^^^^^^^^^^ duckduckgo_search.exceptions.RatelimitException: https://duckduckgo.com/ 202 Ratelimit https://duckduckgo.com/ 202 Ratelimit INFO: 10.10.215.64:0 - "POST /retrieval/api/v1/process/web/search HTTP/1.1" 400 Bad Request ``` **Screenshots/Screen Recordings (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## 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.] ## 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#29955