I am encountering a 500 Internal Server Error when I try to make a post service call. Despite having an interceptor set up to open a dialog, the dialog appears empty. The error seems to be preventing me from receiving the response of this call, but I can view it in the chrome debugger. How can I access the response even with the error present?
Here is my code:
-interceptor:
responseError: function (rejection) {
var bcsAuth = $injector.get('bcsAuth');
var MobileLoading = $injector.get('MobileLoading');
var MobileDialog = $injector.get('MobileDialog');
switch (rejection.status) {case 500:
if (rejection.statusText.toLowerCase().trim() == 'internal server error') {
MobileDialog.alert("error", rejection.data.message, "OK");
} else if (rejection.data.code && rejection.data.code == 'ETIMEDOUT') {
MobileDialog.alert("WARNING", "CONNECTION_TIMEOUT", "OK");
}
Debugging on Google Chrome:
https://i.sstatic.net/yotPU.png https://i.sstatic.net/GrLO2.png