Is there a way to capture these errors in an Ionic application?
ionic.bundle.js:25000 GET net::ERR_CONNECTION_REFUSED
Using the following code snippet:
$http.get('http://' + ip + '/?custom=1&cmd=' + cmd);
I have attempted various combinations of .then, .catch, .finally, etc such as
$http.get().then(..).catch()
However, I am still encountering the error mentioned above in the console.
ionic.bundle.js:25000 GET net::ERR_CONNECTION_REFUSED(anonymous function) @ ionic.bundle.js:25000sendReq @ ionic.bundle.js:24793serverRequest @ ionic.bundle.js:24503processQueue @ ionic.bundle.js:29127(anonymous function) @ ionic.bundle.js:29143Scope.$eval @ ionic.bundle.js:30395Scope.$digest @ ionic.bundle.js:30211(anonymous function) @ ionic.bundle.js:30434completeOutstandingRequest @ ionic.bundle.js:19194(anonymous function) @ ionic.bundle.js:19470