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: retry blank errors to fix long listings

Nick Craig-Woodc3eecbe933ef
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go
index d30fe4ef3..fa17ba97e 100644
--- a/backend/dropbox/dropbox.go
+++ b/backend/dropbox/dropbox.go
@@ -214,7 +214,7 @@ func shouldRetry(err error) (bool, error) {
return true, err
}
// Keep old behavior for backward compatibility
- if strings.Contains(baseErrString, "too_many_write_operations") || strings.Contains(baseErrString, "too_many_requests") {
+ if strings.Contains(baseErrString, "too_many_write_operations") || strings.Contains(baseErrString, "too_many_requests") || baseErrString == "" {
return true, err
}
return fserrors.ShouldRetry(err), err