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.
curl --request POST \
--silent \
--max-time 5 \
--show-error \
--fail-with-body \
--header 'Content-type:application/json' \
--data "${PAYLOAD}" \