Bug: Incorrect error message for IdempotencyAlreadyInProgressError when sortKeyAttr is in use
Closed this issue · 2 comments
Expected Behaviour
Original issue: aws-powertools/powertools-lambda-typescript#3691
When an IdempotencyAlreadyInProgressError is thrown, the error message should include the hashed key information.
Current Behaviour
Currently, the error message only includes the partition key, but when a sortKeyAttr has been provided in the config the partition key is a static string. The leads to meaningless errors in the log that all say there's a IdempotencyAlreadyInProgressError error for the same key.
Code snippet
no codePossible Solution
Include both the pk/sk, or detect the current scenario better and include the more meaningful one.
Steps to Reproduce
use Idempotency with SK
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.13
Packaging format used
Lambda Layers, Serverless Application Repository (SAR) App, PyPi
Debugging logs
⚠️ COMMENT VISIBILITY WARNING⚠️
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
This is now released under 3.9.0 version!