Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Ignore 504 errors while polling for progress (#953)
Browse files Browse the repository at this point in the history
Ignore 504 errors while polling for progress
  • Loading branch information
Ben Junya committed May 30, 2019
2 parents 589dff0 + e38f145 commit 4e18e9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@replicatedhq/ship-init",
"version": "1.6.0",
"version": "1.6.1",
"description": "Shared component that contains the Ship Init app",
"author": "Replicated, Inc.",
"license": "Apache-2.0",
Expand Down
5 changes: 5 additions & 0 deletions web/init/src/redux/data/appRoutes/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export function pollContentForStep(stepId, cb) {
clearInterval(intervalId);
return;
});
// Ignore Gateway Timeout errors
if (body.status === 504) {
return;
}

dispatch(setProgress(body.progress));

const { progress } = body;
Expand Down

0 comments on commit 4e18e9f

Please sign in to comment.