jikanpy: JSONDecodeError: Expecting Value: line 1 column 1 (char 0) in Jikanpy
Hey, I got a problem, I cant call the function jikan.anime(malID)
anymore. The following exception happens every time now:
File “/home/pi/Hosting/-----/commands/mal.py”, line 13, in getInfosFromID r = jk.anime(int(malID)) File “/home/pi/.local/lib/python3.7/site-packages/jikanpy/jikan.py”, line 123, in anime return self._get(“anime”, id, extension, page) File “/home/pi/.local/lib/python3.7/site-packages/jikanpy/jikan.py”, line 91, in _get return self._wrap_response(response, url, id=id, endpoint=endpoint) File “/home/pi/.local/lib/python3.7/site-packages/jikanpy/jikan.py”, line 65, in _wrap_response json_response = response.json() File “/usr/lib/python3/dist-packages/requests/models.py”, line 897, in json return complexjson.loads(self.text, **kwargs) File “/usr/lib/python3/dist-packages/simplejson/init.py”, line 518, in loads return _default_decoder.decode(s) File “/usr/lib/python3/dist-packages/simplejson/decoder.py”, line 370, in decode obj, end = self.raw_decode(s) File “/usr/lib/python3/dist-packages/simplejson/decoder.py”, line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Could someone plz help me? Thanks
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 37 (18 by maintainers)
No, everything is fine (https://pastebin.com/qQ1WcJ6t)
Ill try to debug a little bit more