rpc.sh: add 5 sec timeout and --show-error flag
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
136323e10f
commit
2bd2112339
|
@ -29,6 +29,8 @@ PAYLOAD="{
|
||||||
# The jq script checks if error exists and adjusts exit code.
|
# The jq script checks if error exists and adjusts exit code.
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
--silent \
|
--silent \
|
||||||
|
--max-time 5 \
|
||||||
|
--show-error \
|
||||||
--fail-with-body \
|
--fail-with-body \
|
||||||
--header 'Content-type:application/json' \
|
--header 'Content-type:application/json' \
|
||||||
--data "${PAYLOAD}" \
|
--data "${PAYLOAD}" \
|
||||||
|
|
Loading…
Reference in New Issue