paulgoio / searxng

SearXNG image with changed simple theme, settings.yml
https://paulgo.io
GNU Affero General Public License v3.0
100 stars 23 forks source link

Bug: qwant engine #24

Closed HLShls123 closed 2 years ago

HLShls123 commented 2 years ago

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

Error

Error

Error

Error

Error

mrpaulblack commented 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...

mrpaulblack commented 2 years ago

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