chiefbiiko / dynamodb

deno <3 dynamodb
MIT License
25 stars 11 forks source link

Empty error message for TransactionWriteItems validation error #31

Closed Alxblsk closed 2 years ago

Alxblsk commented 2 years ago

It appears that not all error messages come from DynamoDB endpoints in lowercase.

For instance, for TransactWriteItems operation, if one of transaction components fails, client gets a Message property instead:

image

It is seems like a DynamoDB bug, but it's not really clear when this issue should be reported. Having a fallback in this client is the simplest thing we can do.

Alxblsk commented 2 years ago

I assume that update can be more comprehensive, since that message doesn't tell anything especially specific. but at least it gives a direction, which component needs to be checked.

Error: Transaction canceled, please refer cancellation reasons for specific reasons [None, None, ValidationError]