Closed samuelp-mw closed 2 months ago
Reproduced the OG problem:
File "/Users/mikkokorpela/workspace/opengpts/backend/.venv/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 146, in _text_api
resp = self._get_url("GET", "https://links.duckduckgo.com/d.js", params=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikkokorpela/workspace/opengpts/backend/.venv/lib/python3.11/site-packages/duckduckgo_search/duckduckgo_search.py", line 53, in _get_url
raise DuckDuckGoSearchException(f"_get_url() {url} {type(ex).__name__}: {ex}") from ex
duckduckgo_search.exceptions.DuckDuckGoSearchException: _get_url() https://links.duckduckgo.com/d.js DuckDuckGoSearchException: Ratelimit
And this PR fixes the issue. @samuelp-mw thank you for the contribution!
Context
DuckDuckGo currently cannot be used due to the following error :
The issue was mentioned in the following issues :
Resolution
Upgrading DuckDuckGo search to the latest version (5.3.0) seems to fix the issue.