I have searched the existing issues and discussions.
Problem Description
I use web search service to use DuckDuckgo.
but, print "error searching", "No search results found".
I stressed it.
Desired Solution you'd like
After several attempts, I found the reason why DuckDucko printed the error.
please consider my idea.
Alternatives Considered
First of all, I'm using a docker.
Update DuckDuckGo version to 8.0.0.
Set the timeout to 15 seconds or more.
/backend/open_webui/retrieval/web/duckduckgo.py
with DDGS(timeout=15) as ddgs:
# Use the ddgs.text() method to perform the search
ddgs_gen = ddgs.text(
query,
safesearch="moderate",
max_results=count,
backend="api"
)
# Check if there are search results
if ddgs_gen:
# Convert the search results into a list
search_results = [r for r in ddgs_gen]
I don't know Why Error DuckDuckgo API?
so, I found it can get search result if backend parameter change 'api' to 'html'.
and, I add parameter timelimit, because keep up to date.
/backend/open_webui/retrieval/web/duckduckgo.py
with DDGS(timeout=15) as ddgs:
# Use the ddgs.text() method to perform the search
ddgs_gen = ddgs.text(
query,
safesearch="moderate",
max_results=count,
backend="html", # change api to html
timelimit="y" # add parameter
)
# Check if there are search results
if ddgs_gen:
# Convert the search results into a list
search_results = [r for r in ddgs_gen]
Result. I found search result.
Additional Context
No response
Originally created by @eccentricpark on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12649
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
I use web search service to use DuckDuckgo.
but, print "error searching", "No search results found".
I stressed it.
### Desired Solution you'd like
After several attempts, I found the reason why DuckDucko printed the error.
please consider my idea.
### Alternatives Considered
First of all, I'm using a docker.
1. Update DuckDuckGo version to 8.0.0.
2. Set the timeout to 15 seconds or more.
/backend/open_webui/retrieval/web/duckduckgo.py
```
with DDGS(timeout=15) as ddgs:
# Use the ddgs.text() method to perform the search
ddgs_gen = ddgs.text(
query,
safesearch="moderate",
max_results=count,
backend="api"
)
# Check if there are search results
if ddgs_gen:
# Convert the search results into a list
search_results = [r for r in ddgs_gen]
```
3. I don't know Why Error DuckDuckgo API?
so, I found it can get search result if backend parameter change 'api' to 'html'.
and, I add parameter timelimit, because keep up to date.
/backend/open_webui/retrieval/web/duckduckgo.py
```
with DDGS(timeout=15) as ddgs:
# Use the ddgs.text() method to perform the search
ddgs_gen = ddgs.text(
query,
safesearch="moderate",
max_results=count,
backend="html", # change api to html
timelimit="y" # add parameter
)
# Check if there are search results
if ddgs_gen:
# Convert the search results into a list
search_results = [r for r in ddgs_gen]
```
4. Result. I found search result.

### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @eccentricpark on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12649
Check Existing Issues
Problem Description
I use web search service to use DuckDuckgo.
but, print "error searching", "No search results found".
I stressed it.
Desired Solution you'd like
After several attempts, I found the reason why DuckDucko printed the error.
please consider my idea.
Alternatives Considered
First of all, I'm using a docker.
Update DuckDuckGo version to 8.0.0.
Set the timeout to 15 seconds or more.
/backend/open_webui/retrieval/web/duckduckgo.py
so, I found it can get search result if backend parameter change 'api' to 'html'.
and, I add parameter timelimit, because keep up to date.
/backend/open_webui/retrieval/web/duckduckgo.py
Additional Context
No response
@eccentricpark commented on GitHub (Apr 9, 2025):
The answers in the image used Llama3.2-3B.
@tjbck commented on GitHub (Apr 10, 2025):
Bumped in dev.