atuinsh/atuin · error
Hub account deletion failed with status {status}
Error message
Hub account deletion failed with status {status} What it means
Final fallback in the auth-module delete_account: the Hub returned a non-success status with no parseable structured error and not 401/403, so only the interpolated HTTP status is reported. The account was not deleted; the failure cause is unknown from the client side (commonly a gateway error or unexpected server state).
Source
Thrown at crates/atuin-client/src/auth.rs:487
Some("2fa_required") => return Ok(MutateResponse::TwoFactorRequired),
Some("invalid_2fa_code") => {
bail!("invalid two-factor code");
}
_ => {
bail!("{}", err.reason);
}
}
}
match status {
StatusCode::UNAUTHORIZED => {
bail!("password is incorrect");
}
StatusCode::FORBIDDEN => {
bail!("invalid login details");
}
_ => {
bail!("Hub account deletion failed with status {status}");
}
}
}
}
View on GitHub (pinned to c0c717ab04)
Solutions
- Note the status code in the message and check Atuin Hub service status
- Retry after a delay (especially for 5xx/429)
- Update the atuin CLI in case the deletion API changed
Defensive patterns
Strategy: retry
Validate before calling
// probe Hub availability before the destructive call // e.g. GET /me returns 200 => proceed
Try / catch
match delete_account(...).await {
Err(e) if e.to_string().contains("status 5") || e.to_string().contains("status 429") => {
tokio::time::sleep(Duration::from_secs(30)).await;
// retry once
}
other => /* handle normally */ (),
} Prevention
- Check Atuin Hub status before account operations
- Back off and retry on 5xx/429 rather than hammering the API
When it happens
Trigger: Calling delete_account and receiving unexpected statuses such as 500 (server error), 429 (rate limit), or 404 (endpoint moved).
Common situations: Atuin Hub outage or maintenance; API version drift; aggressive retry loops hitting rate limits.
Related errors
- model list request failed ({status})
- usage request failed ({status})
- username already in use
- failed to parse server version: {:?}
- Server not reporting its version: it is either too old or un
AI-assisted analysis of atuinsh/atuin@c0c717ab04 (2026-09-12).
Data as JSON: /api/errors/d781fa31d8f2232a.
Report an issue: GitHub.