Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

searxng errors upon any search #72

Open
AxelFooley opened this issue Jul 8, 2024 · 0 comments
Open

searxng errors upon any search #72

AxelFooley opened this issue Jul 8, 2024 · 0 comments

Comments

@AxelFooley
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant