deploy: retry on 5xx/429 and shorten HTML error output - #20
Merged
Merged
Conversation
skrime.eu sits behind Cloudflare and occasionally returns 502 Bad gateway while the origin is unavailable. Retry up to 4 times with exponential backoff (5s, 10s, 20s) and log only the page title instead of the full Cloudflare HTML page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vzw95xoy6RWUeGkRfgbMST
Changes requestedThanks for your submission! A few things need fixing before this can be merged:
Push a new commit to this pull request and I'll re-check automatically. |
Owner
Author
|
The Generated by Claude Code |
TinyBrickBoy
marked this pull request as ready for review
September 25, 2026 09:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Deploy DNS run failed because skrime.eu (behind Cloudflare) returned
502 Bad gatewayfor both zones. Cloudflare marked the origin host as the error source, so this was a temporary upstream outage, not a problem with the records.Changes in
.github/scripts/deploy.js:<title>of HTML error pages (for exampleskrime.eu | 502: Bad gateway) instead of the full Cloudflare page.Tested locally against a mock server that returns 502 twice and then 200: the script retries and exits 0.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Vzw95xoy6RWUeGkRfgbMST
Generated by Claude Code