I am attempting to call a custom api with javascript created in Windows Azure Mobile Services and I am having an issue with getting the results in the callback/promise.
I have tested it with fiddler and the data object is being returned with the correct data however it is not passing that data to the callback.
Any help would be greatly appreciated! Below is the code segment I am using:
client.invokeApi('NameOfApi', {
method: 'GET',
parameters: { organizationId: organizationID }
}).done(function (results) {
var requests = JSON.parse(results.response);
//Do some stuffz with requests collection
}, function (error) {
alert(error);
});
And in doing so I am getting into the done or error callbacks through debugging methods. However I have verified that the results are coming back from the api call but they never reached the promise for some reason.
client.invokeApi, are you saying that neither the success nor the error callbacks are being called? Also, is this a HTML/JavaScript project, or a Windows Store/JavaScript app?