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 error insufficient space to be fatal

harryd91a547d595d
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go
old mode 100644
new mode 100755
index f30205bed..07ce35dda
--- a/backend/dropbox/dropbox.go
+++ b/backend/dropbox/dropbox.go
@@ -225,7 +225,11 @@ func shouldRetry(err error) (bool, error) {
return false, err
}
baseErrString := errors.Cause(err).Error()
- // handle any official Retry-After header from Dropbox's SDK first
+ // First check for Insufficient Space
+ if strings.Contains(baseErrString, "insufficient_space") {
+ return false, fserrors.FatalError(err)
+ }
+ // Then handle any official Retry-After header from Dropbox's SDK
switch e := err.(type) {
case auth.RateLimitAPIError:
if e.RateLimitError.RetryAfter > 0 {