You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we wrap the aws clients Publish(*sns.PublishInput) (*sns.PublishOutput, error) with some of our own backoff/jitter we are using the error returned and passing that into request.IsErrorRetryable(error) which is causing us to always get true back for what we consider successful cases of nil error due to the addition of the case nil: return true in this pr inside of shouldRetryError.
Steps to reproduce
Pass nil to IsErrorRetryable.
The text was updated successfully, but these errors were encountered:
Fixesaws#2773 where the IsErrorRetryable helper was incorrectly returning
true for nil errors passed in. IsErrorRetryable will now correctly
return false when the passed in error is nil like documented.
Fixes#2773 where the IsErrorRetryable helper was incorrectly returning
true for nil errors passed in. IsErrorRetryable will now correctly
return false when the passed in error is nil like documented.
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.23.0
Version of Go (
go version
)?v1.12
What issue did you see?
#2744 (comment)
When we wrap the aws clients
Publish(*sns.PublishInput) (*sns.PublishOutput, error)
with some of our own backoff/jitter we are using the error returned and passing that intorequest.IsErrorRetryable(error)
which is causing us to always get true back for what we consider successful cases of nil error due to the addition of thecase nil: return true
in this pr inside ofshouldRetryError
.Steps to reproduce
Pass
nil
toIsErrorRetryable
.The text was updated successfully, but these errors were encountered: