{"record":{"id":"1b204dd41ca0f1bc","repo":"Kuberwastaken/claurst","slug":"download-failed-http-for-check-that-this-ve","errorCode":null,"errorMessage":"Download failed: HTTP {} for {}\nCheck that this version exists in the releases page.","messagePattern":"Download failed: HTTP (.+?) for (.+?)\nCheck that this version exists in the releases page\\.","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-rust/crates/cli/src/upgrade.rs","lineNumber":211,"sourceCode":"    let tag = json\n        .get(\"tag_name\")\n        .and_then(|v| v.as_str())\n        .ok_or_else(|| anyhow!(\"no tag_name in GitHub API response\"))?;\n    Ok(tag.trim_start_matches('v').to_string())\n}\n\n// ---------------------------------------------------------------------------\n// Download\n// ---------------------------------------------------------------------------\n\nasync fn download_to_file(url: &str, dest: &Path) -> Result<()> {\n    let client = reqwest::Client::builder()\n        .timeout(Duration::from_secs(120))\n        .user_agent(format!(\"claurst-upgrade/{}\", env!(\"CARGO_PKG_VERSION\")))\n        .build()?;\n    let resp = client.get(url).send().await?;\n    if !resp.status().is_success() {\n        bail!(\n            \"Download failed: HTTP {} for {}\\n\\\n             Check that this version exists in the releases page.\",\n            resp.status(),\n            url\n        );\n    }\n    let bytes = resp.bytes().await?;\n    std::fs::write(dest, &bytes)?;\n    Ok(())\n}\n\n// ---------------------------------------------------------------------------\n// Extraction (shells out — tar is on every modern system, including Windows 10+)\n// ---------------------------------------------------------------------------\n\nfn extract_archive(archive: &Path, dest: &Path, is_zip: bool) -> Result<()> {\n    if is_zip {\n        // Windows: prefer PowerShell Expand-Archive; fall back to tar -xf.","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/Kuberwastaken/claurst/blob/b0637c97ec34144387cbf2f74f65df6d16a6cef1/src-rust/crates/cli/src/upgrade.rs#L193-L229","documentation":"The release asset download (archive for the detected target) returned a non-success HTTP status. Usually 404 because the requested version tag has no matching asset for this target; the message's second placeholder is the asset URL that failed.","triggerScenarios":"Thrown at src-rust/crates/cli/src/upgrade.rs:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the version exists on the GitHub releases page and has an asset for your target","Omit --version to upgrade to latest, which always has assets","Check for target naming mismatches (e.g. macos-aarch64 vs darwin-arm64) on the releases page"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b0637c97ec34144387cbf2f74f65df6d16a6cef1","analyzedAt":"2026-09-10T00:24:58.650Z","contentChangedAt":"2026-09-10T00:24:58.650Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}