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

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

Open
Tyler887 opened this issue Apr 21, 2022 · 0 comments
Open

Comments

@Tyler887
Copy link

Tyler887 commented Apr 21, 2022

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)
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