Reputation: 769
When writing $http() queries i found that nor interceptor configured with $httpProvider.interceptors.push('myHttpInterceptor') neither $http().catch() never fired with 401 or 400 error. What is going on?
Upvotes: 1
Views: 464
Reputation: 769
The problem :there is an interceptor already , that i installed but poorly configured.
In my case it was angular-http-auth.
After removing it 401 is catched as it should be.
Upvotes: 1