Skip to content

Commit

Permalink
Retry 500 and 502 responses with backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Jun 2, 2021
1 parent 550a82a commit cebaaca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions msgraph/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ func (c Client) performRequest(req *http.Request, input HttpRequestInput) (*http
rateLimitingStatuses := []int{
http.StatusFailedDependency,
http.StatusTooManyRequests,
http.StatusInternalServerError,
http.StatusBadGateway,
http.StatusServiceUnavailable,
}
if containsStatusCode(rateLimitingStatuses, status) {
Expand Down

0 comments on commit cebaaca

Please sign in to comment.