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= {
                     }  ;
   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");
       // console.log($scope.recData);
      request.error(function(data, status, headers, config) {
  $scope.reset = function() {
    $scope.user = angular.copy($scope.master);


Errors: imageimage

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

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