{"record":{"id":"ca817fdbaed37e2b","repo":"zeroclaw-labs/zeroclaw","slug":"sha256sums-fetch-returned","errorCode":null,"errorMessage":"SHA256SUMS fetch returned {}","messagePattern":"SHA256SUMS fetch returned (.+?)","errorType":"http","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/commands/update.rs","lineNumber":515,"sourceCode":"    Ok(())\n}\n\nasync fn verify_download_checksum(\n    bytes: &[u8],\n    asset_url: &str,\n    sha256sums_url: &str,\n    client: &reqwest::Client,\n) -> Result<()> {\n    let asset_name = asset_name_from_url(asset_url)\n        .context(\"cannot derive release asset filename from download URL\")?;\n\n    let sums_resp = client\n        .get(sha256sums_url)\n        .send()\n        .await\n        .context(\"failed to fetch SHA256SUMS\")?;\n    if !sums_resp.status().is_success() {\n        bail!(\"SHA256SUMS fetch returned {}\", sums_resp.status());\n    }\n\n    let sums_text = sums_resp\n        .text()\n        .await\n        .context(\"failed to read SHA256SUMS body\")?;\n    verify_checksum_bytes(bytes, &asset_name, &sums_text)?;\n\n    ::zeroclaw_log::record!(\n        INFO,\n        ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note)\n            .with_outcome(::zeroclaw_log::EventOutcome::Success)\n            .with_attrs(::serde_json::json!({\"asset\": asset_name})),\n        \"Update download checksum verified\"\n    );\n    Ok(())\n}\n","sourceCodeStart":497,"sourceCodeEnd":533,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/commands/update.rs#L497-L533","documentation":"Fires in verify_download_checksum when the SHA256SUMS file fetch returns a non-success HTTP status. Checksum verification is mandatory before the downloaded artifact is written, so a failed sums fetch aborts the install rather than falling back to an unverified binary. The faulting input is the SHA256SUMS URL for the release. Retry, or check that the release still publishes a SHA256SUMS asset.","triggerScenarios":"Thrown at src/commands/update.rs:515 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check connectivity to the release host serving SHA256SUMS and retry.","If the release lacks a SHA256SUMS file, update to a release that publishes checksums or verify manually."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","contentChangedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}