ghapi icon indicating copy to clipboard operation
ghapi copied to clipboard

json.decoder.JSONDecodeError: Expecting value: line 2 column 16 (char 16)

Open Tyler887 opened this issue 3 years ago • 0 comments

result of ghapi meta.get_octocat:

Traceback (most recent call last):
  File "C:\Users\tyler\scoop\apps\python\current\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\tyler\scoop\apps\python\current\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\tyler\scoop\apps\python\current\Scripts\ghapi.exe\__main__.py", line 7, in <module>
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\ghapi\cli.py", line 53, in ghapi
    res = _call_api(_ghapi)
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\ghapi\cli.py", line 42, in _call_api
    return call if kw.get('help', None) else call(*pos, **kw)
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\ghapi\core.py", line 63, in __call__
    return self.client(self.path, self.verb, headers=headers, route=route_p, query=query_p, data=data_p)
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\ghapi\core.py", line 108, in __call__
    res,self.recv_hdrs = urlsend(path, verb, headers=headers or None, debug=self.debug, return_headers=True,
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\fastcore\net.py", line 212, in urlsend
    return urlread(req, return_json=return_json, return_headers=return_headers)
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\fastcore\net.py", line 117, in urlread
    if return_json: res = loads(res)
  File "C:\Users\tyler\scoop\apps\python\current\lib\site-packages\fastcore\xtras.py", line 200, in loads
    return json.loads(s, cls=cls, object_hook=object_hook, parse_float=parse_float,
  File "C:\Users\tyler\scoop\apps\python\current\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Users\tyler\scoop\apps\python\current\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\tyler\scoop\apps\python\current\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 16 (char 16)

Tyler887 avatar Apr 21 '22 15:04 Tyler887