diff --git a/http/httpclient/client.go b/http/httpclient/client.go index dc58ba463..38d152a9a 100644 --- a/http/httpclient/client.go +++ b/http/httpclient/client.go @@ -131,8 +131,8 @@ func (jc *HttpClient) Send(method, url string, content []byte, followRedirect, c if resp == nil { return false, errorutils.CheckErrorf("%sReceived empty response from server", logMsgPrefix) } - // If response-code < 500, should not retry - if resp.StatusCode < 500 { + // If response-code < 500 and it is not 429, should not retry + if resp.StatusCode < 500 && resp.StatusCode != http.StatusTooManyRequests { return false, nil } // Perform retry