Do() should checks about CheckRetry value before calling it
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- go
- Domain
- networking
Research direction
Start at the Do() entry point and trace where CheckRetry is called, using the issue's manually constructed http.Client example to reproduce the nil-value failure. Ensure the retry check handles an unset CheckRetry without a segfault, then verify that normal retryablehttp.NewClient() behavior remains unchanged.
Written by the indexing model from the issue text.
Description
I have integrated go-retryablehttp but went into an issue on segfault when Do() function calls "CheckRetry".
That was because my code create the Client struct itself using:
hc := &http.Client{}
So all extra members of the Client object were not defined (like CheckRetry).
Switching to:
hc := retryablehttp.NewClient()
Fixed the issue.
So, I think the library should check "CheckRetry" value before calling it.
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 298
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hashicorp/go-retryablehttp
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
hashicorp/go-retryablehttp#295 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hashicorp/go-retryablehttp#188 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hashicorp/go-retryablehttp#156 · 2 comments · 4 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
hashicorp/go-retryablehttp#272 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
hashicorp/go-retryablehttp#252 · 3 reactions ·
All issues in hashicorp/go-retryablehttp
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100