Skip to content

Commit e5c1b5b

Browse files
author
Konrad Weihmann
committed
entrypoint.sh: ignore Server Error responses
as these are temporary problems it's safe to assume that retrying it at a later point resolve the issue Closes #55
1 parent a382075 commit e5c1b5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ api() {
101101
echo >&2 "api failed:"
102102
echo >&2 "path: $path"
103103
echo >&2 "response: $response"
104+
if [[ "$response" == *'"Server Error"'* ]]; then
105+
echo "Server error - trying again"
106+
exit 0
107+
fi
104108
exit 1
105109
fi
106110
}

0 commit comments

Comments
 (0)