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

onedrive: make error quotaLimitReached to be fatal - Fixes #4089

harry9aa32bc2692d
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go
old mode 100644
new mode 100755
index e560fb0b1..10e25bb78
--- a/backend/onedrive/onedrive.go
+++ b/backend/onedrive/onedrive.go
@@ -436,6 +436,8 @@ func shouldRetry(resp *http.Response, err error) (bool, error) {
fs.Debugf(nil, "Too many requests. Trying again in %d seconds.", retryAfter)
}
}
+ case 507: // Insufficient Storage
+ return false, fserrors.FatalError(err)
}
}
return retry || fserrors.ShouldRetry(err) || fserrors.ShouldRetryHTTP(resp, retryErrorCodes), err