Skip to content

Commit

Permalink
fix: prevent retrying 200 response (#1857)
Browse files Browse the repository at this point in the history
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
shaffeeullah and gcf-owl-bot[bot] authored Apr 8, 2022
1 parent 72f7992 commit 638a47b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gcs-resumable-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 638a47b

Please sign in to comment.