From 66cbc08793b671defc07afbb48e3a860e9f7871d Mon Sep 17 00:00:00 2001 From: ianwremmel <1182361+ianwremmel@users.noreply.github.com> Date: Mon, 18 Apr 2022 21:07:09 -0700 Subject: [PATCH] fix: fallback to to singlestep upload on timeout/abort --- src/commands/submit.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/submit.ts b/src/commands/submit.ts index 43a30c6..979e060 100644 --- a/src/commands/submit.ts +++ b/src/commands/submit.ts @@ -62,7 +62,10 @@ async function tryMultiStepUploadOrFallbackToSingle( } catch (err) { if (axios.isAxiosError(err)) { // CI doesn't like safe-access here. - if (err.response && err.response.status === 404) { + if ( + (err.response && err.response.status === 404) || + err.code === 'ECONNABORTED' + ) { context.logger.info( 'Received 404 trying to get signed URLs. Assuming feature is notn released yet and falling back to single step upload', {err}