Closed HLShls123 closed 2 years ago
Hi @HLShls123 , Thanks for the issue. Qwant seems break since yesterday on my instance and I am not really sure why yet. Looking at other instances they work fine: https://searx.tiekoetter.com/search?q=%21qwant+time&category_general=on&language=en-US&time_range=&safesearch=0&theme=simple
So I am guessing they blocked my instance or something!?
here is the exception log from my instance:
2022-02-04 11:09:52,579 WARNING:searx.engines.qwant: ErrorContext('searx/engines/qwant.py', 123, "raise SearxEngineAPIException('API error::' + msg)", 'searx.exceptions.SearxEngineAPIException', None, ('API error::unknown',)) False
2022-02-04 11:09:52,580 ERROR:searx.engines.qwant: exception : API error::unknown
Traceback (most recent call last):
File "/usr/local/searxng/searx/search/processors/online.py", line 143, in search
search_results = self._search_basic(query, params)
File "/usr/local/searxng/searx/search/processors/online.py", line 131, in _search_basic
return self.engine.response(response)
File "/usr/local/searxng/searx/engines/qwant.py", line 123, in response
raise SearxEngineAPIException('API error::' + msg)
searx.exceptions.SearxEngineAPIException: API error::unknown
I will keep this ticket open and update if a fix is found...
[EDIT] I tried a example query on my local machine and my VPS:
curl -i 'https://api.qwant.com/v3/search/web?q=time&count=10&offset=0&locale=en_US' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0'
On my local machine it returned results
the same query returned an error on my instance:
{"status":"error","data":{"error_code":24}}
I think the only efficient way around this is an HTTP proxy tbh...
Qwant is not blocking nor rate limiting my public instances IP for 3 days now; Closing (For now, going to reopen if this happens again).
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: 1.0.0
How did you install SearXNG?
What happened?
How To Reproduce
Expected behavior
Screenshots & Logs
Additional context
Technical report
Error
('API error::unknown',)
searx/engines/qwant.py:123
response
raise SearxEngineAPIException('API error::' + msg)
Error
('API error::q must be longer than or equal to 1 characters',)
searx/engines/qwant.py:123
response
raise SearxEngineAPIException('API error::' + msg)
Error
()
searx/search/processors/abstract.py:102
handle_exception
count_error(self.engine_name, exception_or_message)
Error
('Expecting value',)
searx/engines/qwant.py:110
response
search_results = loads(resp.text)
Error
(None, None, None)
searx/search/processors/online.py:96
_send_http_request
response = req(params['url'], **request_args)
Error
(None, None, 'api.qwant.com')
searx/search/processors/online.py:96
_send_http_request
response = req(params['url'], **request_args)