Skip to content

Commit

Permalink
fix: fallback to to singlestep upload on timeout/abort
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwremmel committed Apr 19, 2022
1 parent 20a7e72 commit 66cbc08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 66cbc08

Please sign in to comment.