"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
dropbox: treat insufficient_space errors as non retriable errors
Nick Craig-Wood4b9da601be94
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.goindex e39fa44b2..f30205bed 100644--- a/backend/dropbox/dropbox.go+++ b/backend/dropbox/dropbox.go@@ -1123,6 +1123,13 @@ func (o *Object) uploadChunked(in0 io.Reader, commitInfo *files.CommitInfo, sizereturn false, nil}entry, err = o.fs.srv.UploadSessionFinish(args, chunk)+ // If error is insufficient space then don't retry+ if e, ok := err.(files.UploadSessionFinishAPIError); ok {+ if e.EndpointError != nil && e.EndpointError.Path != nil && e.EndpointError.Path.Tag == files.WriteErrorInsufficientSpace {+ err = fserrors.NoRetryError(err)+ return false, err+ }+ }// after the first chunk is uploaded, we retry everythingreturn err != nil, err})