Possible unhandled rejection #15599
Description
Since upgrading from 1.5.x to 1.6.1 I'm getting 'Possible unhandled rejection' errors on $http requests, even though I have a global httpinterceptor which catches errors (showing a dialog with the error message).
I've read about the reason for this error, but it seems to do more harm than good.
And the stack trace does not give any clue to where the error occurs (all lines point to code in angular.js).
I would rather not have to add an error handling method to each .then portion, it's unnecessary bloat.
Maybe I'm not handling the errors in the correct way in my global http interceptor ( according to what 1.6.1 expects), but fact is that before 1.6 this was working without errors.
Maybe you could provide an example of how errors should be handled correctly with a global http interceptor?