I am hosting a SPA on S3, it works in IE, Chrome and Opera version 25 but not in Opera version 12.17 or the Sony Blue ray device. On app load I make a request out to our API using angular $http.get , when I look in the network traffic , it does not show these request ever being made.
var config = { 'Authorization' : 'Bearer '+ accessToken };
$http.get(url, { headers : config })
.success(function(data, status) {
$rootScope.info = " In success callback";
callback(transformResponse(data));
})
.error(function(data, status, headers, config){
$rootScope.info = " In error callback";
callback(data.error);
});
I get the following error in the console.
Error: Cannot convert 'data' to object
<anonymous function: f.error>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:72
<anonymous function: then>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:100
<anonymous function: then>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:100
<anonymous function: then>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:100
<anonymous function: then>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:101
<anonymous function: $eval>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:111
<anonymous function: $digest>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:108
<anonymous function: $apply>([arguments not available])@http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.min.js:112