You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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);
}
The text was updated successfully, but these errors were encountered: