github-tools / github-tools/github

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

Aberta
#439 1 comentário 4 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
JavaScript
Estrelas
3.8k
Forks
809
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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`

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.