File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 120
120
local error_message
121
121
122
122
status_code=$(echo "$response" | jq -r '.status_code')
123
+ # todo-remove
124
+ echo "Response Status Code in check_report_status: $status_code"
123
125
body=$(echo "$response" | jq -r '.body')
126
+ echo "Response body in check_report_status: body"
124
127
125
128
if [[ $status_code -ne 200 ]]; then
126
129
echo "Error: API returned status code $status_code"
143
146
144
147
# Initial API Request
145
148
RESPONSE=$(make_api_request "FIRST")
146
- check_report_status "$RESPONSE" || true
149
+ check_report_status "$RESPONSE" || exit 0
147
150
RETRY_COUNT=$(echo "$RESPONSE" | jq -r '.body.retryCount // 3')
148
151
POLLING_DURATION=$(echo "$RESPONSE" | jq -r '.body.pollingInterval // 3')
149
152
You can’t perform that action at this time.
0 commit comments