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

dropbox: make malformed_path errors from too long files not retriable

Nick Craig-Wooda9585efd6456
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go
index 854bc798d..180cd9551 100755
--- a/backend/dropbox/dropbox.go
+++ b/backend/dropbox/dropbox.go
@@ -254,9 +254,11 @@ func shouldRetry(err error) (bool, error) {
return false, err
}
baseErrString := errors.Cause(err).Error()
- // First check for Insufficient Space
+ // First check for specific errors
if strings.Contains(baseErrString, "insufficient_space") {
return false, fserrors.FatalError(err)
+ } else if strings.Contains(baseErrString, "malformed_path") {
+ return false, fserrors.NoRetryError(err)
}
// Then handle any official Retry-After header from Dropbox's SDK
switch e := err.(type) {