If i call this function in node test app, it is working fine, but if i call it in serverless function then this is not working.
callback function is not getting called.
Note: apiPost is working fine in serverless function.
code snippet
async function getUser(data) {
var callback = function(err, res) {
if (!err) {
console.log([Get Sailthru user]: Success, {data, res});
return res;
} else {
console.log([Get Sailthru user]: Error, {data, err});
throw err;
}
};
sailthru.apiGet('user', data, callback);
}