This is happening independently from using openai or groq as engine, with every search i am having this error in searxng logs, though i do not notice any issue from the user experience perspective, i wanted to raise this for knowledge:
searxng-1 | 2024-07-08 11:18:43,513 WARNING:searx.engines.openverse: ErrorContext('searx/search/processors/online.py', 125, 'count_error(', None, '1 redirects, maximum: 0', ('200', 'OK', 'api.openverse.org')) True
searxng-1 | 2024-07-08 11:18:43,514 WARNING:searx.engines.wallhaven: ErrorContext('searx/engines/wallhaven.py', 69, 'json = resp.json()', 'json.decoder.JSONDecodeError', None, ('Expecting value',)) False
searxng-1 | 2024-07-08 11:18:43,514 ERROR:searx.engines.wallhaven: exception : Expecting value: line 1 column 1 (char 0)
searxng-1 | Traceback (most recent call last):
searxng-1 | File "/usr/local/searxng/searx/search/processors/online.py", line 163, in search
searxng-1 | search_results = self._search_basic(query, params)
searxng-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng-1 | File "/usr/local/searxng/searx/search/processors/online.py", line 151, in _search_basic
searxng-1 | return self.engine.response(response)
searxng-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng-1 | File "/usr/local/searxng/searx/engines/wallhaven.py", line 69, in response
searxng-1 | json = resp.json()
searxng-1 | ^^^^^^^^^^^
searxng-1 | File "/usr/lib/python3.11/site-packages/httpx/_models.py", line 756, in json
searxng-1 | return jsonlib.loads(self.text, **kwargs)
searxng-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng-1 | File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
searxng-1 | return _default_decoder.decode(s)
searxng-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng-1 | File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
searxng-1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
searxng-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng-1 | File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
searxng-1 | raise JSONDecodeError("Expecting value", s, err.value) from None
searxng-1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This is happening independently from using openai or groq as engine, with every search i am having this error in searxng logs, though i do not notice any issue from the user experience perspective, i wanted to raise this for knowledge: