{"record":{"id":"10f76636ead0409a","repo":"atuinsh/atuin","slug":"password-is-incorrect","errorCode":null,"errorMessage":"password is incorrect","messagePattern":"password is incorrect","errorType":"http","errorClass":null,"httpStatus":401,"severity":"error","filePath":"crates/atuin-client/src/auth.rs","lineNumber":230,"sourceCode":"            }\n        }\n    }\n\n    async fn delete_account(\n        &self,\n        password: &str,\n        _totp_code: Option<&str>,\n    ) -> Result<MutateResponse> {\n        let client = self.authenticated_client()?;\n        let url = self.address.append([\"account\"])?;\n\n        let resp =\n            client.delete(url).json(&serde_json::json!({ \"password\": password })).send().await?;\n\n        match resp.status().as_u16() {\n            200 => Ok(MutateResponse::Success),\n            401 => {\n                bail!(\"password is incorrect\");\n            }\n            403 => {\n                bail!(\"invalid login details\");\n            }\n            _ => {\n                bail!(\"unknown error\");\n            }\n        }\n    }\n}\n\n// ---------------------------------------------------------------------------\n// Hub backend — talks to the Hub v0 API endpoints\n// ---------------------------------------------------------------------------\n\npub struct HubAuthClient {\n    address: Url,\n    hub_token: Option<String>,","sourceCodeStart":212,"sourceCodeEnd":248,"githubUrl":"https://github.com/atuinsh/atuin/blob/c0c717ab04c881764bcad4b3d169a507e2432643/crates/atuin-client/src/auth.rs#L212-L248","documentation":"Match arm in the auth-module delete_account: the DELETE /account request carrying the password proof returned HTTP 401 UNAUTHORIZED, meaning the password supplied to authorize account deletion is wrong. The account is not deleted.","triggerScenarios":"Thrown at crates/atuin-client/src/auth.rs:230 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-enter the account password correctly and retry the deletion","If the password is forgotten, recover it first, then delete the account"],"exampleFix":null,"handlingStrategy":"validation","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"}