github-tools / github-tools/github

Cannot read property 'status' of undefined error when there is no network

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

説明

When there is no network the `_request` function fails, without rejecting the Promise, which makes impossible to catch the error when using a callback.

Even though the component can't be used without the network (#388), I think would be good to handle the case.

The error:

`TypeError: Cannot read property 'status' of undefined`

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

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

調査の方向性

Start by locating the `_request` function and reproduce the no-network case described in the issue. Check the related context in issue #388, then ensure the failed request rejects its Promise so callback users can catch the error; done means the undefined `status` error is handled instead of escaping.

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

評価

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

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

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