From f31cfcc0f4b0a5ebe9f43971c3c52f3624faee2e Mon Sep 17 00:00:00 2001 From: JaviPege Date: Wed, 22 Oct 2025 23:26:32 +0200 Subject: [PATCH] debug: show raw JSON before jq parsing --- setup/lib/setup-api.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/lib/setup-api.sh b/setup/lib/setup-api.sh index 1268c36..796917b 100755 --- a/setup/lib/setup-api.sh +++ b/setup/lib/setup-api.sh @@ -159,7 +159,9 @@ add_download_client() { \"tags\": [] }" - log_debug "Download client JSON payload:" >&2 + log_debug "Download client JSON payload (raw):" >&2 + echo "$data" >&2 + log_debug "Download client JSON payload (parsed):" >&2 echo "$data" | jq '.' >&2 || log_error "Invalid JSON generated" >&2 if api_call "POST" "$service" "$port" "downloadclient" "$api_key" "$data" > /dev/null; then