Skip to content

Commit a81036c

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 a81036c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

entrypoint.sh

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

0 commit comments

Comments
 (0)