Skip to content

apiGet for 'user' is not working in serverless #47

@ranjankv

Description

@ranjankv

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);

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions