In Chrome when incorrect creds are sent, the 401 response sometimes is caught by the catch method and sometimes by the error method. It works correctly in Edge and FireFox.
var data = {'email':'fake.email@gmail.com', 'password':'fake'};
Stamplay.User.login(data).then(function(res){
console.log('login Success', res);
}, function(err) {
console.log('login Error', err);
}).catch(function(res){
console.log('catch', res);
});
In Chrome when incorrect creds are sent, the 401 response sometimes is caught by the catch method and sometimes by the error method. It works correctly in Edge and FireFox.