github-tools / github-tools/github

response will be undefined for 404 endpoint

オープン
#495 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
3.8k
フォーク
809
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
api
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。