You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read the Media Redirect from One Request in check-live-urls.sh #339
check_media in checks/check-live-urls.sh has the same two-fetch shape that check_redirect had before the fix for #334.
It requests the source URL once for %{http_code} and, on a 301 or 308, a second time for %{redirect_url}, checking neither curl exit status. When the second request fails in transit, target is empty and the line reads media <url> answered 301 with no usable Location, although the server did send one. The report names the wrong problem, the same way the redirect check used to.
Its final request reports no HTTP response: curl exit N whenever curl exits non-zero, even when a status line arrived and only the body was cut short (curl exit 18 with a real status code). The message then says no response arrived when one did.
Reproduction
A constructed local responder that answers the first request for a path with a 301 and drops the connection on the second reproduces the first case. A responder that sends 301 with Content-Length: 50 and a 5-byte body, then closes, reproduces the second (curl exits 18 with http_code 301).
Read the code and the redirect URL from one request, -w '%{http_code} %{redirect_url}'.
Report a transport failure with no status as no HTTP response: curl exit N, and a status followed by a failed transfer as answered <code> but the transfer failed: curl exit N.
Also in scope here, moved from #334 at the maintainer's direction: decide whether a transport failure in check-live-urls.sh gets one bounded retry before it counts as a failure.
#340 made check_redirect read the code and the destination from one request, which removes the second fetch that could fail on its own. The new messages also name a transport failure as one (no HTTP response: curl exit N), so a reader can tell it apart from a broken rule. Whether to retry once, for both the redirect check and the media check this issue reworks, is still open. Today's practice is to re-run the whole check once by hand.
Activity
ptr727 commentedon Oct 1, 2026
Also in scope here, moved from #334 at the maintainer's direction: decide whether a transport failure in
check-live-urls.shgets one bounded retry before it counts as a failure.#340 made
check_redirectread the code and the destination from one request, which removes the second fetch that could fail on its own. The new messages also name a transport failure as one (no HTTP response: curl exit N), so a reader can tell it apart from a broken rule. Whether to retry once, for both the redirect check and the media check this issue reworks, is still open. Today's practice is to re-run the whole check once by hand.🤖 Generated with Claude Code
Read Each Media Hop in One Request and Retry a Lost Connection Once (#…