Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise support (Node.js8) #30

Open
valonhaliti opened this issue May 13, 2019 · 3 comments
Open

Promise support (Node.js8) #30

valonhaliti opened this issue May 13, 2019 · 3 comments

Comments

@valonhaliti
Copy link

valonhaliti commented May 13, 2019

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.

@valonhaliti
Copy link
Author

I think this PR will solve this issue:
#28
@vkkis93 can you please look into this whenever you have time?

@Arsen0809
Copy link

@vkkis93 is there news about async lambda issue?

@karlpatrickespiritu
Copy link

Hey guys. I'm also getting this bug. This project probably isn't maintained anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants