Error codes

NETWORK_ERROR

The request did not reach Capxul, or the answer did not come back.

Exit code: 5 · Who acts: Depends on the error's mode · From: the CLI, the SDK and the backend

What it means

The request did not reach Capxul, or the answer did not come back.

Common causes

  • The connection failed or timed out.

Fix it

  1. Check your connection and try again.
  2. For a payment, read its status before you send again: capxul payment list.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "failed",
  "error": {
    "code": "NETWORK_ERROR",
    "message": "…"
  }
}

In the SDK, a failed result has result.error.code === "NETWORK_ERROR". 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