github-tools / github-tools/github

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

Đang mở
#439 1 bình luận 4 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
3.8k
Fork
809
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.