I’m using Ionic 1.0.0-beta.8
Inside of the anonymous function inside of createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument), I get an error at
xhr.send(post || null); //Line 17399 of ionic.bundle.js
The error says, “GET https://[the address I’m hitting]”
I’m sure that this error occurs inside of xhr.onreadystatechange callback somwhere. I want to know exactly where it’s writing the error.
I have tried the following steps with no success…
$exceptionHandler: I created my own $exceptionHandler and it never gets called. This makes me assume that the exception is being handled somewhere.
Using my $resource error callback: Like this… $resource(apiUrl).get(null, successCallback, failureCallback). The FailureCallback IS called before I get the error.
Using the $promise from the $resource.Get call: This also gets called before the error.
Sometimes i’ve experiencied a javascript error on my $http requests due to an html response from my backend (usually given by some error in my backend)