Skip to content

Recent SDK retrier not retrying "connection refused" properly? #2561

Answered by RanVaknin
udhos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @udhos ,

It's not clear which SDK version are you upgrading from and to?

From the error provided it seems like your application only retries 3 times: exceeded maximum number of attempts, 3, but your the retryer override specifies 6 retry attempts. This hints at the fact that perhaps this retryer is not being used by the constructed client.

You can also enable your SDK request and response logs. That would help print the timestamp of the outgoing retry attempts, and see if that custom 40 second backoff is applied or not:

	cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-east-1"), config.WithClientLogMode(aws.LogRequestWithBody | aws.LogResponseWithBody | aws.Lo…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RanVaknin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2560 on March 18, 2024 16:29.