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

context.succeed() and context.fail() when using lambda_invoke #8

Closed
jonyo opened this issue May 20, 2015 · 1 comment · Fixed by #11
Closed

context.succeed() and context.fail() when using lambda_invoke #8

jonyo opened this issue May 20, 2015 · 1 comment · Fixed by #11

Comments

@jonyo
Copy link
Contributor

jonyo commented May 20, 2015

When you use grunt lambda_invoke on even the hello world script, it gives the error:

$ grunt lambda_invoke:HelloWorld
Running "lambda_invoke:HelloWorld" (lambda_invoke) task

Loading function
value1 = First Value
value2 = Second Value
value3 = Third Value
Warning: undefined is not a function Use --force to continue.

Aborted due to warnings.

I found the issue is that context.succeed function is not defined in the invoke.

Is this project still active? If so I can submit a PR to fix this by fully mocking the context object as documented in the AWS Lambda docs. Thanks!

@Tim-B
Copy link
Owner

Tim-B commented May 20, 2015

Yeah it's still active, I'm just a bit busy at the moment so I haven't had much time to sort through the issues.

I didn't notice they'd added succeed() and fail() functions, initially it was just done() I think.

@Tim-B Tim-B closed this as completed in #11 May 23, 2015
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

Successfully merging a pull request may close this issue.

2 participants