AnswerDotAI / AnswerDotAI/ghapi

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

Aperta
#131 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
686
Fork
69
Merge medio
1m
PR unite (30g)
2

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci `ghapi meta.get_octocat` e inizia da `ghapi/cli.py` e `ghapi/core.py`, seguendo la chiamata fino all’analisi della risposta mostrata nel traceback. Controlla la risposta restituita e i test o punti di ingresso esistenti per questa chiamata API; il lavoro è completato quando il comando gestisce la risposta segnalata senza sollevare questo JSONDecodeError e dispone di una copertura di regressione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, python
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.