Using restangular and stub hub api. I can hit this API in firefox restclient and return the response body with all the JSON data.
But in my application I have 200, but there is no response body ... the length of the content even says something there
although the api says you just need a GET / URI endpoint and authorization: Bearer {token}


Here is my configuration configuration
'use strict'; angular.module('myapp') .config(['RestangularProvider', function(RestangularProvider){ RestangularProvider.setBaseUrl('https://api.stubhub.com/'); RestangularProvider.setDefaultHeaders({ Accept: 'application/json', Authorization: 'Bearer 198u2190832190831432742(notreallymytoken)' }); RestangularProvider.setDefaultHttpFields({ withCredentials: false }); }]);
and here is my controller
$scope.searchEvents = function(){ Restangular.one('search/catalog/events/v2?title="san francisco"').get().then(function(response){ $scope.searchResponse = response; }, function(response){ console.log("something went wrong"); }) }
How can I start debugging? I want to continue using restangular, so I hope I can get around this somehow.
source share