Skip to content

TD-5229: a failed update check says why - #113

Merged
captcrock merged 1 commit into
mainfrom
td/5229-update-error
Nov 3, 2026
Merged

captcrock merged 1 commit into
mainfrom
td/5229-update-error

Conversation

@captcrock

Copy link
Copy Markdown
Contributor

What

Settings → About → Check for updates showed only release fetch failed: error sending request for url (...), which is reqwest's top line. The reason is in the error's source chain, which this path dropped.

The check now says in words what failed (timed out, could not connect, or the request failed), asks to check the network and try again, and keeps the full cause chain as details. Reading the release list, the checksum file and download chunks keep the chain too.

Why it failed

On the Mac where it was reported, the same request with the updater's exact client settings (reqwest 0.12.28, rustls, same timeouts and user agent) returned 200 later the same day, with GitHub's real certificate and no proxy configured. So it was the network at that moment, not a block or an intercepted certificate. With this change the next failure will say which.

Tests

  • New updater::fetch::tests::an_unreachable_check_says_why: a real refused connection on loopback (no outside network); the message names the failure and carries the OS reason. Fails against the old message.
  • macOS: cargo test --lib 136 passed; cargo clippy --all-targets -- -D warnings clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HUthoCdmzg2hy89ssk2cSF

Check for updates showed only "release fetch failed: error sending request
for url (...)", reqwest's top line. The reason (no route, refused, DNS,
certificate) is in the error's source chain, which this path dropped, so a
dropped network looked the same as a blocked or intercepted one.

The check now says in words what failed (timed out, could not connect, or
the request failed), asks to check the network, and keeps the cause chain as
details. Reading the release list, the checksum file and download chunks
keep the chain too.

On the Mac where it was reported, the same request with the updater's own
client settings returned 200 later the same day (real certificate, no
proxy), so the failure was the network at that moment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HUthoCdmzg2hy89ssk2cSF
@captcrock
captcrock force-pushed the td/5229-update-error branch from 49ac289 to fc1a28b Compare November 3, 2026 16:28
@captcrock
captcrock merged commit f27e27f into main Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant