serverless-step-functions-offline
serverless-step-functions-offline copied to clipboard
Promise support (Node.js8)
When passing data with callback it's working fine (the Next state is being triggered).
export const handler = (event, context, cb) => {
cb(null, {
data: result
});
};
But when I'm using async functions (promises) instead:
export const handler = async event => {
return {
data: result
};
};
It's not working, the process is shutting down. The Next state it's not being triggered at all.
I think this PR will solve this issue: https://github.com/vkkis93/serverless-step-functions-offline/pull/28 @vkkis93 can you please look into this whenever you have time?
@vkkis93 is there news about async lambda issue?
Hey guys. I'm also getting this bug. This project probably isn't maintained anymore.