dropbox: retry blank errors to fix long listings

Sometimes dropbox returns blank errors in listings - retry this

See: https://forum.rclone.org/t/bug-sync-dropbox-to-gdrive-failing-for-large-files-50gb-error-unexpected-eof/8595
This commit is contained in:
Nick Craig-Wood 2019-02-06 10:23:59 +00:00
parent d8e5b19ed4
commit c3eecbe933
1 changed files with 1 additions and 1 deletions

View File

@ -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