Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does XMLHttpRequest status code -1 mean?

I've added logging of failed AJAX requests to my application and I'm seeing a lot of failures with a status code of -1.

I can't find a definition of the -1 status code anywhere.

Does anyone know what this represents?

I'm seeing it from IE 8.0, Firefox 13, Chrome 20, and more. It doesn't appear to be a browser specific quirk.

like image 242
joshuapoehls Avatar asked Nov 23 '25 06:11

joshuapoehls


1 Answers

After enhancing our logging to include the status text it was clear what the -1 code means. transaction aborted is what status text shows in Chrome 20.

like image 142
joshuapoehls Avatar answered Nov 24 '25 23:11

joshuapoehls



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!