Error codes

EMAIL_DELIVERY_FAILED

Capxul could not send an email that the request needs.

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

What it means

Capxul could not send an email that the request needs.

Common causes

  • The email provider is down or refused the message.

Fix it

  1. Try again later.
  2. If it continues, contact Capxul support with the request reference.

In JSON and the SDK

With --json, the CLI prints:

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

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

Commands that can answer with it

No command lists this code. It can still come from the SDK or the backend.

On this page