mrisa icon indicating copy to clipboard operation
mrisa copied to clipboard

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Open kraftydevil opened this issue 3 years ago • 1 comments

I'm running the python example and can see that the server is indeed running and reacting to calls.

I seem to be getting errors related to json:

$ python3 mrisa.py 
Traceback (most recent call last):
  File "/Users/Greg/Projects/Python/GoogleImageSearch/mrisa.py", line 36, in <module>
    print(r.json())
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I'm using the docker image, although I may be messing that up.

How to troubleshoot?

kraftydevil avatar Apr 27 '21 04:04 kraftydevil

Same issue here.

windowshopr avatar Sep 07 '22 03:09 windowshopr