diff --git a/.gitea/workflows/release-verify.yml b/.gitea/workflows/release-verify.yml index bdb753ac..553d4cb8 100644 --- a/.gitea/workflows/release-verify.yml +++ b/.gitea/workflows/release-verify.yml @@ -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 != '' diff --git a/scripts/ci/wait-for-url.sh b/scripts/ci/wait-for-url.sh index f345c4c5..c9ab7138 100755 --- a/scripts/ci/wait-for-url.sh +++ b/scripts/ci/wait-for-url.sh @@ -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