-
Notifications
You must be signed in to change notification settings - Fork 153
Bug: idempotentLambdaHandler
breaks when used with other decorators
#1481
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
Comments
Need to look into it further, but the stack trace shows that the Logger decorator is not able to read info from the Lambda context object. This suggests that the Swapping the order of decorators (i.e. |
We have decided to hold back the decorator and not include it in the beta release. Read more about why in #1375. |
|
Expected Behaviour
As a customer I should be able to use multiple class method decorators in conjunction with Idempotency's
idempotentLambdaHandler
decorator. The decorator should do its job and either allow other decorators to run or bail cleanly.Current Behaviour
When using multiple decorators (i.e.
idempotentLambdaHandler
&logger.injectLambdaContext
) withidempotentLambdaHandler
being the first one, the function throws an error like this:Code snippet
Steps to Reproduce
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
18.x
Packaging format used
npm
Execution logs
No response
The text was updated successfully, but these errors were encountered: