Skip to content

Commit

Permalink
DEVPROD-8559 Retry on EOF github responses (#8572)
Browse files Browse the repository at this point in the history
  • Loading branch information
bynn authored Dec 19, 2024
1 parent b26d426 commit 4bc5a26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions thirdparty/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ func githubShouldRetry(caller string, config retryConfig) utility.HTTPRetryFunct
url := req.URL.String()

if err != nil {
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) {
grip.Error(message.WrapError(err, message.Fields{
"message": "EOF error from github",
"method": req.Method,
"url": url,
"retry_num": index,
}))
return true
}
temporary := utility.IsTemporaryError(err)
grip.Error(message.WrapError(err, message.Fields{
"message": "failed trying to call github",
Expand Down

0 comments on commit 4bc5a26

Please sign in to comment.