vivithemage / mrisa

MRISA - Meta reverse image search api
http://mrisa.mage.me.uk/
GNU General Public License v2.0
266 stars 63 forks source link

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

Open kraftydevil opened 3 years ago

kraftydevil commented 3 years ago

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/python@3.9/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/python@3.9/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/python@3.9/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?

windowshopr commented 2 years ago

Same issue here.