Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
XHR having no status and statusText 'error'

I have a generic error handler, when the response from the service layer in not JSON

...
else if (xhr.status)
  growl($.i18n('http_error',xhr.status))
else if (xhr.statusText)
  growl($.i18n('network_error',xhr.statusText))
...

I've got a bunch of screenshots showing, that the second if is activated, so I have XHR with an empty status, and statusText having content 'error'.

I'm interpreting such cases and a network connection error, but is my premise correct? In what circumstances browser (the screenshots are from Chrome) gives back XHR with such constellation of values? Is this only when the network connection was broken? The reporters claim having no problems with their internet connection, but it's not something I can verify.

There is no particular pattern when the error occurs, other then it's 'somewhere in the middle' (so anyway, random).

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda