Skip to content
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

Retry when io.readAll fail #238

Open
chimerYuheng opened this issue Sep 13, 2024 · 0 comments
Open

Retry when io.readAll fail #238

chimerYuheng opened this issue Sep 13, 2024 · 0 comments

Comments

@chimerYuheng
Copy link

chimerYuheng commented Sep 13, 2024

Hi, I recently learned how golang make http request:

  1. send request
  2. receive header containing io.reader
  3. use io.reader to make follow-up request for the actual payload

I ran into a scenario where we failed on step 3 and did not see retry, and I am not really sure how to make it retryable with go-retryablehttp. Seems like this Do function isn't returning the actual payload directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant