I am using the following code to send request to DSP.
$timeout(function(){
DreamFactory.api.db.getRecords({table_name:'question'}, function(success){
console.log(success);
}, function(error){
console.log(error);
});
});
The callbacks are getting called when this is first request I am sending but when it is followed by a POST (and PUT) request to the same end-point(table_name
), the callbacks are not called.
I have confirmed in the Network tab of Developer console that the GET request is sent and the response is received.
Is there a better way of getting the response?
Also created an issue here