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

Handle exceptions and call Invocation Error endpoint #4

Closed
jberger opened this issue May 1, 2019 · 1 comment
Closed

Handle exceptions and call Invocation Error endpoint #4

jberger opened this issue May 1, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jberger
Copy link

jberger commented May 1, 2019

Hi, I'm just checking out this layer and it seems incredibly helpful! Thanks for providing it.

While reading the code I notice that you don't handle exceptions but rather rely on it calling the default script exception handler. Have you considered using an eval block around the function call to trap exceptions and report them to https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html#runtimes-api-invokeerror . Indeed after that you might want to do the same with the require statement to catch compile errors too.

Anyway, thanks a lot and I expect I'll be using this layer going forward! Cheers.

@moznion moznion self-assigned this Mar 7, 2020
@moznion moznion added the enhancement New feature or request label Mar 7, 2020
moznion added a commit that referenced this issue Mar 7, 2020
@moznion
Copy link
Owner

moznion commented Mar 7, 2020

@jberger Oops, I'm so sorry, I overlooked this issue.
I've just modified to deal with it on the layer and published the new layer.

  • arn:aws:lambda:${REGION}:652718333417:layer:perl-5_26-layer:7
  • arn:aws:lambda:${REGION}:652718333417:layer:perl-5_28-layer:(5|6)
  • arn:aws:lambda:${REGION}:652718333417:layer:perl-5_30-layer:2

Thank you for the information!

@moznion moznion closed this as completed Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants