Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

backend/s3: Added 500 as retryErrorCode

Michał Matczuke75c1f70bbd2
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index 99641874b..94462b4bc 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -951,7 +951,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{
- // 409, // Conflict - various states that could be resolved on a retry
+ 500, // Internal Server Error - "We encountered an internal error. Please try again."
503, // Service Unavailable/Slow Down - "Reduce your request rate"
}