From 245c0f1c4b187f9f7fed1457794810a59826176a Mon Sep 17 00:00:00 2001 From: Alex Efron Date: Mon, 25 May 2026 19:24:38 +0000 Subject: [PATCH] fix(aws): set retry_error_body on bulk_delete_request AWS S3 can return HTTP 200 with a SlowDown or InternalError XML body for DeleteObjects requests. The retry logic already handles this via body_contains_error() when retry_error_body is set, and other requests (copy_part, complete_multipart) already use this flag. bulk_delete_request was missing it, causing throttling errors to surface instead of being retried. Closes #277 --- src/aws/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aws/client.rs b/src/aws/client.rs index 6716bb01..f579a89b 100644 --- a/src/aws/client.rs +++ b/src/aws/client.rs @@ -578,7 +578,9 @@ impl S3Client { .header(CONTENT_TYPE, "application/xml") .body(body) .with_aws_sigv4(credential.authorizer(), Some(digest.as_ref())) - .send_retry(&self.config.retry_config) + .retryable(&self.config.retry_config) + .retry_error_body(true) + .send() .await .map_err(|source| Error::DeleteObjectsRequest { source,