File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
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"
125
123
body=$(echo "$response" | jq -r '.body')
126
- echo "Response body in check_report_status: body"
127
124
128
125
if [[ $status_code -ne 200 ]]; then
129
126
echo "Error: API returned status code $status_code"
146
143
147
144
# Initial API Request
148
145
RESPONSE=$(make_api_request "FIRST")
149
- check_report_status "$RESPONSE" || exit 0
146
+ check_report_status "$RESPONSE"
147
+ report_status_return=$?
148
+ if [[ report_status_return -eq 1 ]]; then
149
+ exit 0
150
+ fi
150
151
RETRY_COUNT=$(echo "$RESPONSE" | jq -r '.body.retryCount // 3')
151
152
POLLING_DURATION=$(echo "$RESPONSE" | jq -r '.body.pollingInterval // 3')
152
153
You can’t perform that action at this time.
0 commit comments