Error codes

SUPERSEDED

A newer request replaced this one.

Exit code: 6 · Who acts: You or another person, after you read the current state, or by waiting · From: the CLI, the SDK and the backend

What it means

A newer request replaced this one.

Common causes

  • The same change was asked for again, and the newer request won.

Fix it

  1. Read the current state. Do not retry the older request.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "refused",
  "error": {
    "code": "SUPERSEDED",
    "message": "…"
  }
}

In the SDK, a failed result has result.error.code === "SUPERSEDED". Branch on the code, not on the message: the message is written for people and can change.

Commands that can answer with it

On this page