diff --git a/entrypoint.sh b/entrypoint.sh index e7569b4..1f9b313 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 }