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

Objects passed to the context output methods aren't serialized #54

Closed
jkells opened this issue Nov 18, 2015 · 2 comments
Closed

Objects passed to the context output methods aren't serialized #54

jkells opened this issue Nov 18, 2015 · 2 comments

Comments

@jkells
Copy link

jkells commented Nov 18, 2015

It's common to call context.succeed context.error and context.done with an object instead of a string.

The lambda invoke task fails to output them, instead just printing the following

Success!  Message:
------------------
[object Object]

I think the output objects should be serialized so you get some sane output.

@pedrocarrico
Copy link

According to the AWS Lambda documentation the result provided must be JSON.stringify compatible so 👍 for #55

@Tim-B
Copy link
Owner

Tim-B commented Feb 14, 2016

Thanks for reporting this issue.

It should be resolved by this pull request in the next release: f544e42

@Tim-B Tim-B closed this as completed Feb 14, 2016
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