{"record":{"id":"904423c64c67bcba","repo":"atuinsh/atuin","slug":"unknown-error","errorCode":null,"errorMessage":"Unknown error","messagePattern":"Unknown error","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin-client/src/api_client.rs","lineNumber":639,"sourceCode":"        let index = resp.json().await?;\n\n        debug!(\"got remote index {index:?}\");\n\n        Ok(index)\n    }\n\n    #[instrument(level = \"trace\", skip_all, err)]\n    pub async fn delete(&self) -> Result<()> {\n        let url = self.sync_addr.append([\"account\"])?;\n\n        let resp = self.client.delete(url).send().await?;\n\n        if resp.status() == 403 {\n            bail!(\"invalid login details\");\n        } else if resp.status() == 200 {\n            Ok(())\n        } else {\n            bail!(\"Unknown error\");\n        }\n    }\n\n    #[instrument(level = \"trace\", skip_all, err)]\n    pub async fn change_password(\n        &self,\n        current_password: String,\n        new_password: String,\n    ) -> Result<()> {\n        let url = self.sync_addr.append_path(\"account/password\")?;\n\n        let resp = self\n            .client\n            .patch(url)\n            .json(&ChangePasswordRequest {\n                current_password,\n                new_password,\n            })","sourceCodeStart":621,"sourceCodeEnd":657,"githubUrl":"https://github.com/atuinsh/atuin/blob/c0c717ab04c881764bcad4b3d169a507e2432643/crates/atuin-client/src/api_client.rs#L621-L657","documentation":"Final else-branch of the status match in Client::delete: the DELETE /account response was neither 200 (deleted) nor 403 (bad credentials), so the code has no specific mapping. The actual status code is discarded, making this a low-information sentinel for any unexpected response during account deletion.","triggerScenarios":"Thrown at crates/atuin-client/src/api_client.rs:639 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the deletion; transient 5xx responses fall into this branch","Check connectivity to the sync server and whether an intermediary returned an unexpected status","Inspect server logs to learn the real status code"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c0c717ab04c881764bcad4b3d169a507e2432643","analyzedAt":"2026-09-12T07:40:01.341Z","contentChangedAt":"2026-09-12T07:40:01.341Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}