Join GitHub today
Microsoft Edge returns error code 0 for request and doesn't offer a responseJSON #3828
When calling my web service in the following manner, Chrome, FF and IE correctly reply with an error object which includes a proper responseJSON attribute. Microsoft Edge, however, reports a status "0" with the statusText "error". The object doesn't contain any additional information.
The web server always responds with an error 400 to this request:
The raw response to this request is according to Google Chrome:
The expected result for parameter e should be:
Microsoft Edge, exclusively under all tested browsers, generates:
Looks like it could really be a Edge bug. I created this little test code:
In other browsers, this will post the status 400, which is correct. In Edge, however, I get back status 0.
I've just created a ticket on Microsoft's bug tracker: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14407632/