Skip to content

Commit

Permalink
Merge pull request #114 from check-run-reporter/fallback-on-abort
Browse files Browse the repository at this point in the history
fix: fallback to to singlestep upload on timeout/abort
  • Loading branch information
ianwremmel authored Apr 19, 2022
2 parents 20a7e72 + 66cbc08 commit 29a3823
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 29a3823

Please sign in to comment.