release-verify: add diagnostics for 503 errors
ci-deploy / build-deploy-test (push) Successful in 1m11s
ci-deploy / build-deploy-test (push) Successful in 1m11s
- Enhanced wait-for-url.sh to capture HTTP status, response time, and size on failure - Added full response capture in release-verify.yml for debugging customer URL issues
This commit is contained in:
@@ -53,6 +53,8 @@ jobs:
|
||||
echo "--- second hit on the same dict (expect HIT if nginx caches) ---"
|
||||
curl -sSI -A "$UA" --max-time 10 \
|
||||
http://flights-ui.devwebzavod.ru/api/dictionary/1/world_regions | grep -iE "^HTTP|x-cache|x-envoy" || true
|
||||
echo "--- Full response from /ru-ru/onlineboard (for debugging 503) ---"
|
||||
curl -s -A "$UA" --max-time 10 http://flights-ui.devwebzavod.ru/ru-ru/onlineboard | head -30 || true
|
||||
|
||||
- name: Notify (success)
|
||||
if: success() && env.TELEGRAM_BOT_TOKEN != ''
|
||||
|
||||
@@ -38,4 +38,6 @@ while [ "$attempt" -le "$MAX_ATTEMPTS" ]; do
|
||||
done
|
||||
|
||||
echo "fail: $URL did not return 2xx after $MAX_ATTEMPTS attempts" >&2
|
||||
echo "--- Diagnostic: Attempting to reach the URL one more time to capture the error ---" >&2
|
||||
curl -sS -A "$UA" ${AUTH_ARGS[@]+"${AUTH_ARGS[@]}"} -w "\nHTTP_CODE=%{http_code}\nTIME=%{time_total}s\nSIZE=%{size_download}\n" -o /dev/null "$URL" || true
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user