{"record":{"id":"b7e7275a614c85af","repo":"zed-industries/zed","slug":"failed-to-download-remote-server-release","errorCode":null,"errorMessage":"failed to download remote server release: {:?}","messagePattern":"failed to download remote server release: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/auto_update/src/auto_update.rs","lineNumber":1008,"sourceCode":"\n    pub fn should_show_update_notification(&self, cx: &App) -> Task<Result<bool>> {\n        let kvp = KeyValueStore::global(cx);\n        cx.background_spawn(async move {\n            Ok(kvp.read_kvp(SHOULD_SHOW_UPDATE_NOTIFICATION_KEY)?.is_some())\n        })\n    }\n}\n\nasync fn download_remote_server_binary(\n    target_path: &PathBuf,\n    release: ReleaseAsset,\n    client: Arc<HttpClientWithUrl>,\n) -> Result<()> {\n    let temp = tempfile::Builder::new().tempfile_in(remote_servers_dir())?;\n    let mut temp_file = File::create(&temp).await?;\n\n    let mut response = client.get(&release.url, Default::default(), true).await?;\n    anyhow::ensure!(\n        response.status().is_success(),\n        \"failed to download remote server release: {:?}\",\n        response.status()\n    );\n    smol::io::copy(response.body_mut(), &mut temp_file).await?;\n    smol::fs::rename(&temp, &target_path).await?;\n\n    Ok(())\n}\n\nasync fn cleanup_remote_server_cache(\n    platform_dir: &Path,\n    keep_path: &Path,\n    limit: usize,\n) -> Result<()> {\n    if limit == 0 {\n        return Ok(());\n    }","sourceCodeStart":990,"sourceCodeEnd":1026,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/auto_update/src/auto_update.rs#L990-L1026","documentation":"download_remote_server_binary fetched the release asset URL for the remote-server binary and the HTTP response carried a non-success status; the error embeds the response status, meaning the download endpoint rejected or failed the request (bad URL, missing asset, or server-side error) rather than a local I/O problem.","triggerScenarios":"Thrown at crates/auto_update/src/auto_update.rs:997 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the download after a short backoff for transient 5xx/network failures","Verify the release asset URL and channel are still valid (the release may have been yanked)","Check connectivity and proxy settings if the status indicates an auth or network error"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}