File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
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"
147
- report_status_return=$?
148
- if [[ report_status_return -eq 1 ]]; then
149
- exit 0
150
- fi
149
+ check_report_status "$RESPONSE" || true
151
150
RETRY_COUNT=$(echo "$RESPONSE" | jq -r '.body.retryCount // 3')
152
151
POLLING_DURATION=$(echo "$RESPONSE" | jq -r '.body.pollingInterval // 3')
153
152
You can’t perform that action at this time.
0 commit comments