Skip to content

Commit

Permalink
entrypoint.sh: ignore Server Error responses (#56)
Browse files Browse the repository at this point in the history
as these are temporary problems it's safe to assume that
retrying it at a later point resolve the issue

Closes #55
  • Loading branch information
kwavnet committed Oct 8, 2022
1 parent dc8fc82 commit d7939b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ api() {
echo >&2 "api failed:"
echo >&2 "path: $path"
echo >&2 "response: $response"
exit 1
if [[ "$response" == *'"Server Error"'* ]]; then
echo "Server error - trying again"
else
exit 1
fi
fi
}

Expand Down

0 comments on commit d7939b4

Please sign in to comment.