get_enode.sh: add retries to account for slow start

Containers can be slow to start, but still want that enode.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-08-24 13:13:28 +02:00 committed by Jakub
parent b631b93bd1
commit 06587bd1bc
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ MAIL_PASSWORD="${MAIL_PASSWORD:-status-offline-inbox}"
# query local
RESP_JSON=$(
curl -s -XPOST http://${RPC_ADDR}:${RPC_PORT}/ \
curl -sS --retry 3 --retry-all-errors \
-X POST http://${RPC_ADDR}:${RPC_PORT}/ \
-H 'Content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}'
)