rpc.sh: add 5 sec timeout and --show-error flag

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-21 14:57:42 +01:00
parent 136323e10f
commit 2bd2112339
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 2 additions and 0 deletions

View File

@ -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}" \