From 2bd21123393dbecd6a6b37dae4fd7774d9263eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 21 Nov 2023 14:57:42 +0100 Subject: [PATCH] rpc.sh: add 5 sec timeout and --show-error flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- templates/rpc.sh.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/rpc.sh.j2 b/templates/rpc.sh.j2 index e5a001f..d0530f3 100644 --- a/templates/rpc.sh.j2 +++ b/templates/rpc.sh.j2 @@ -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}" \