"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
onedrive: Work around for random "Unable to initialize RPS" errors
OleFrost89daa9efd1ce
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 7ea8caf34..6bb634024 100755--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -566,6 +566,9 @@ func shouldRetry(ctx context.Context, resp *http.Response, err error) (bool, errif len(resp.Header["Www-Authenticate"]) == 1 && strings.Index(resp.Header["Www-Authenticate"][0], "expired_token") >= 0 {retry = truefs.Debugf(nil, "Should retry: %v", err)+ } else if err != nil && strings.Contains(err.Error(), "Unable to initialize RPS") {+ retry = true+ fs.Debugf(nil, "HTTP 401: Unable to initialize RPS. Trying again.")}case 429: // Too Many Requests.// see https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online