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 when search is 'daylight savings uk' #29

Closed lumenav closed 2 years ago

lumenav 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: 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 Screenshot 2022-03-11 at 15 39 29

Screenshots & Logs

Additional context

Technical report

Error

Error

mrpaulblack commented 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)
mrpaulblack commented 2 years ago

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.