Bug: idempotency in-memory cache doesn't read correct value #2309
Labels
bug
Something isn't working
completed
This item is complete and has been merged/shipped
idempotency
This item relates to the Idempotency Utility
Expected Behaviour
When using the Idempotency utility with in-memory cache enabled, the utility should return the result of a previous operation from cache provided that the request is handled by the same execution environment.
Current Behaviour
When the in-memory cache is enabled the utility doesn't return the correct value from the cache, but instead causes a runtime error.
Code snippet
To reproduce you can use the first example found in our docs with the only change of enabling the local cache:
Steps to Reproduce
Then run the function with the same payload twice and observe the error (shown below) being thrown at the second execution.
Possible Solution
N/A
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
20.x
Packaging format used
npm
Execution logs
The text was updated successfully, but these errors were encountered: