From 8a429d12cfb181bf3a28ce4e794b3eada8bf7e0e Mon Sep 17 00:00:00 2001 From: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> Date: Tue, 1 Dec 2020 19:55:25 +0530 Subject: [PATCH] s3: Added error handling for error code 429 indicating too many requests Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> --- backend/s3/s3.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 9032587f3..ded801621 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -1346,6 +1346,7 @@ func (f *Fs) Features() *fs.Features { // retryErrorCodes is a slice of error codes that we will retry // See: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html var retryErrorCodes = []int{ + 429, // Too Many Requests 500, // Internal Server Error - "We encountered an internal error. Please try again." 503, // Service Unavailable/Slow Down - "Reduce your request rate" }