github-tools / github-tools/github
writeFile function fails when response status header is 304 unmodified
- Lingua principale
- JavaScript
- Stelle
- 3.8k
- Fork
- 809
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The response object in the getSha returned promise fails on here `commit.sha = response.data.sha;`
The response.data is null, the status header of the response object is '304 Unmodified'
The writeFile function fails before the PUT requests are created.
https://github.com/github-tools/github/blob/24223f7a51ba935f1c86ffd552dac20e8f3e359d/lib/Repository.js#L732
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start in lib/Repository.js at the linked writeFile code, tracing the getSha promise and the response handling around commit.sha = response.data.sha. Confirm the expected behavior for a 304 response and verify that writeFile no longer fails before creating its PUT requests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100