javascript - AngularJS $http won't fire second .then function -


i have piece of code response status code 403. problem never fire second function, nothing.

i've seen similar errors people using interceptors, i'm not.

 itens.signup($scope.user, confirmation).then(function (response) {    console.log('success'); },   function (response) {    console.log('error'); }); 

the below isn't formatted right.

.then(function(response) {     console.log('success');   }),   function(response) {     console.log('error');   }; } 

it should this:

.then(function(response) {   console.log('success'); }, function(response) {   console.log('error'); }); 

alternatively this:

.then(function () {   console.log('success'); }) .catch(function () {   console.log('error'); }); 

Comments