Open andreyvital opened 4 years ago
Hey @andreyvital ! Thanks for opening this, and sorry for our delay.
What you're doing looks fine, but without seeing the actual error I'm unsure if it's safe to assume that either of your type assertions would work. Did you confirm that the errors being returned implemented the Timeout()
or Temporary()
interfaces you've defined?
If you fixed the issue since you reported it, would you mind confirming if this was a go-retryablehttp problem or something else? Thanks!
So.....based off this: https://github.com/hashicorp/go-retryablehttp/blob/master/client.go#L399-L405. By default, it ignores timeout errors. But I do want to force retry on those, here's what I did:
However, it doesn't seem to be working—with
RetryMax
set to 10, I can't see it getting past the 1st attempt.