Not returning response from $http and handout

I am working with a ionic app, I get data from API request with navigate to a new page.

Sth like

$scope.$on(’$ionicView.beforeEnter’, function(event){
$http(configObj).
then(function(response) {
//success handle
console.log("success result: " + JSON.stringify(response));
//Handle the response…

}, function(data, status, headers, config) {
  //fail handle
  console.log("data:" + JSON.stringify(data));
  console.log("status:" + JSON.stringify(status));
  console.log("headers:" + JSON.stringify(headers));
  console.log("config:" + JSON.stringify(config));
});

})

And there is 50% chance work without issue, and 50% chance not returning response (i mean no success handle callback or fail handle callback return and the app is handout without error, seem keep waiting the response)

Do any one got similar issue?
Any idea to solve? Thx