-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
service/dynamodb: No way to get CancellationReasons from a TransactionCanceledException? #2318
Comments
Thank you for reaching out about this @guregu. While the |
Any update on this? Thanks! |
Hi @ronnylt, the support for unmarshaling API errors is still an outstanding item on our backlog. In the meantime we do have a workaround example, https://github.com/aws/aws-sdk-go/blob/master/example/service/dynamodb/transactWriteItems that will show how you can workaround this issue. |
@jasdel Is there some sort of blocker for this or is it just a matter of someone putting in the effort? If it's the latter, I'll be glad to put in a PR. But considering you went through the effort of putting together that example rather than a PR, I'm guessing there's some other issue? |
Has this been fixed in v1.28.0? I haven't gotten the chance to check, but it seems to be the case looking at the SDK Features release notes. |
This has been fixed in v1.28.0 . I will go ahead and close this issue. |
Version of AWS SDK for Go?
v1.15.86
Version of Go (
go version
)?go version go1.10.3 darwin/amd64
What issue did you see?
When I try to execute a TransactWriteItems with conditions in the items that fail, there seems to be no way to get the CancellationReasons from the error that is returned. This also means that I can't retrieve the original data of the failing items when I set ReturnValuesOnConditionCheckFailure to be ReturnValuesOnConditionCheckFailureAllOld.
Steps to reproduce
As far as I can tell, there's no way to get the CancellationReasons from this (which are present in the response JSON when I enable verbose logging). Apologies if I'm simply overlooking the correct method.
The text was updated successfully, but these errors were encountered: