Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!