github-tools / github-tools/github

response will be undefined for 404 endpoint

Ouverte
#495 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
3.8k
Forks
809
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

https://github.com/github-tools/github/blob/24223f7a51ba935f1c86ffd552dac20e8f3e359d/lib/Requestable.js#L187

In the above code **response** will be undefined if the request is for a non-existing endpoint (which will result in 404 response).

In-order to re-produce invoke getSha() method for a non-existing in the repository

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Read lib/Requestable.js at line 187, then reproduce the issue by invoking getSha() for a nonexistent endpoint in the repository. Confirm the 404 path no longer leaves response undefined and verify the relevant behavior with the project's existing tests.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
api
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.