Feature request: makeHandlerIdempotent Masks Internal Errors #1530
Labels
completed
This item is complete and has been merged/shipped
feature-request
This item refers to a feature request for an existing or new utility
idempotency
This item relates to the Idempotency Utility
Milestone
Use case
As an engineer implementing the idempotency package, I need to know what is causing the failures while testing the implementation. I must be able to see, in output or attached to the error that is surfaced, to properly handle or mitigate the error. It took additional time to line-by-line debug it.
Example: While testing, I had forgotten to give my lambda permissions to the dynamodb table. The test failed with a generic error with message,
Failed to save in progress record to idempotency store
.Example: While testing, my sso session had expired and my credentials were no longer valid. My tests failed with a generic error with a message such as,
Failed to update success record to idempotency store
.Place where this happens:
Solution/User Experience
Consider one or both of the following:
Alternatively, you just make each of the custom errors take an additional argument which is the original error.
Alternative solutions
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: