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

yandex: fix 400 Bad Request on transfer failure

Nick Craig-Wood055206c4eef4
diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.go
index a643a7771..806c5f915 100644
--- a/backend/yandex/yandex.go
+++ b/backend/yandex/yandex.go
@@ -1100,7 +1100,7 @@ func (o *Object) upload(ctx context.Context, in io.Reader, overwrite bool, mimeT
NoResponse: true,
}
- err = o.fs.pacer.Call(func() (bool, error) {
+ err = o.fs.pacer.CallNoRetry(func() (bool, error) {
resp, err = o.fs.srv.Call(ctx, &opts)
return shouldRetry(ctx, resp, err)
})