diff --git a/thirdparty/github.go b/thirdparty/github.go index e23e2155b6..692497134a 100644 --- a/thirdparty/github.go +++ b/thirdparty/github.go @@ -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",