Closed lumenav closed 2 years ago
Hi @lumenav , Thanks for the bug report and filling out the tamplate :D This is because Qwant is sometimes blocking my IP for a day or so because of too many requests from my instance to their server. There are a lot of those issues already in this repo you can see another one here: https://github.com/paulgoio/searxng/issues/24 .
The only real way to fix this is to use a proxy with multiple public IP addresses... I will keep this open to track my progress on this, but this will take some time (could be multiple weeks). Keep in mind that this error does not do anything... The results still work as good as before (just without qwant sometimes)...
also from another qwant bug: we should impl. to only send searches with at least 1 char in q as a TODO:
Error
Error: searx.exceptions.SearxEngineAPIException
Percentage: 0
Parameters: ('API error::q must be longer than or equal to 1 characters',)
File name: searx/engines/qwant.py:123
Function: response
Code: raise SearxEngineAPIException('API error::' + msg)
After a long time I finally set up a set of http proxy server; Since the search traffic to the engines is now split between multiple public IPs, my instance should not get IP blocked for the foreseeable future :tada: ; Closing.
Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG Repository: https://github.com/paulgoio/searxng Branch: main Version: 2022.03.05-740e3bc9
How did you install SearXNG?
executing the searx/webapp.py file **What happened?**typed search of 'daylight savings uk'
Some results were returned but this error was shown on the right hand side of the display
How To Reproduce
Performing the same search I'd expect
Expected behavior
Results returned but no error
Screenshots & Logs
Additional context
Technical report
Error
(None, None, 'api.qwant.com')
searx/search/processors/online.py:96
_send_http_request
response = req(params['url'], **request_args)
Error
('API error::unknown',)
searx/engines/qwant.py:123
response
raise SearxEngineAPIException('API error::' + msg)