Retry artifact uploads on HTTP 500 (#833)

* Retry on 500

* bump package version

* fix tests

* Remove spurious change

* fix another test

* Roll back package version
This commit is contained in:
Brian Cristante
2021-06-04 17:09:30 -04:00
committed by GitHub
parent bb2f39337d
commit db21627995
3 changed files with 9 additions and 8 deletions

View File

@@ -72,8 +72,9 @@ export function isRetryableStatusCode(statusCode: number | undefined): boolean {
const retryableStatusCodes = [
HttpCodes.BadGateway,
HttpCodes.ServiceUnavailable,
HttpCodes.GatewayTimeout,
HttpCodes.InternalServerError,
HttpCodes.ServiceUnavailable,
HttpCodes.TooManyRequests,
413 // Payload Too Large
]