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:
parent
b631b93bd1
commit
06587bd1bc
|
@ -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}'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue