Errors from ionic.bundle.js

I’m trying to perform a registration for my application.It worked fine initially then it started showing errors in ionic.bundle.js.Here is my controller.

.controller(‘registerCtrl’, [‘$scope’,‘$http’,‘$window’,function($scope,$http, $window) {

  $scope.master = {};
  $scope.update = function(user) {
    $scope.master = angular.copy(user);
    console.log("testing connectivity",$scope.master);
   var obj= {
                "reg_details":[{
                        'username_register':user.nick,
                        'email_register'   :user.email,
                        'mobile_register'  :user.mobile,
                        'password_register':user.pass,
                        'cpassword_register':user.cpass
                        }]
                     }  ;
   var request = $http({
      method: "post",
      url: "http://",
      data: obj  
});
      request.success(function(data, status, headers, config) {
        console.log("testing success",data,status);
        if (data.status==1) {
            $window.alert("registration is successful");
        }
        else{
          $window.alert(data.error_message);
        };
       // console.log($scope.recData);
        $scope.user={};
      });
      request.error(function(data, status, headers, config) {
        console.log("error",status,data)
      });
  };
  $scope.reset = function() {
    $scope.user = angular.copy($scope.master);
  }; 

}])

Errors: imageimage

Also, when i submit it after getting error.it’s working fine

It seems your request is working but your backend returns invalid data, because the error message occurs during repsonse transformation.