You found a bug! We've classified it as
EXTJS-27682
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
-
Sencha User
Ext.data.request.Ajax doesn't fire requestexception on failed requests (6.6.0)
When there's no service, and I send an http request, Chrome DevTools' Network panel shows a red entry with a status "(failed)". These requests normally triggered a requestexception prior to Ext JS 6.6.0 Classic.
In Ext JS 6.6.0, the method Ext.data.request.Ajax-static-method-parseStatus has been modified which results in these requests being recognized falsely as successful.
https://docs.sencha.com/extjs/6.6.0/...od-parseStatus
The problem is that success:true is allowed when status is 0 and response length (len) is a number, but the new modifications set the len variable manually to 0 if responseType is 'json', which in turn probably depends on how the request is configured...
So failed requests falsely result in successful response.
-
Sencha - Forum Administrator
Thank you for bringing this to our attention. I have shared this with our support team to further look into.
-
Ext Support Team
Thanks for the report! I have opened a bug in our bug tracker.