Errors

identity_not_ready

409, or 400 on the tigby login poll: Identity not ready.

Identity not ready. Answered with 409, or 400 on the tigby login poll.

What it means

A new Identity Key is minted only for a ready Identity. One still provisioning receives its first key from its own saga, a failed one would lose every key again when its saga is retried, and one being deleted has had its keys revoked as the first act of its teardown. A tigby login --identity confirmed for such an Identity mints nothing and is refused, and its terminal is answered with this code on its next poll.

What to do

Poll GET /api/identities/{handle} until status is ready, then mint. A failed Identity is retried with POST /api/identities/{handle}/retry; one that is being deleted takes no key again.

The body

{
  "type": "https://tigby.eu/problems/identity_not_ready",
  "title": "Identity not ready",
  "status": 409,
  "detail": "…what was refused, naming this request's own values",
  "code": "identity_not_ready",
  "doc_url": "https://docs.tigby.eu/errors/identity_not_ready",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.