From 638a47b4e7ecc6e94b3b11d1ccc7c52afdeaafe1 Mon Sep 17 00:00:00 2001 From: Sameena Shaffeeullah Date: Fri, 8 Apr 2022 11:14:56 -0700 Subject: [PATCH] fix: prevent retrying 200 response (#1857) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: prevent retrying 200 response * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: prevent retrying 200 response * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- src/gcs-resumable-upload.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcs-resumable-upload.ts b/src/gcs-resumable-upload.ts index f40a98987..d7b7bef30 100644 --- a/src/gcs-resumable-upload.ts +++ b/src/gcs-resumable-upload.ts @@ -1016,6 +1016,7 @@ export class Upload extends Pumpify { */ private onResponse(resp: GaxiosResponse) { if ( + resp.status !== 200 && this.retryOptions.retryableErrorFn!({ code: resp.status, message: resp.statusText,