Error codes

PROVIDER_RESPONSE_INVALID

A service answered, but Capxul could not use the answer.

Exit code: 5 · Who acts: Capxul · From: the CLI, the SDK and the backend

What it means

A service answered, but Capxul could not use the answer.

Common causes

  • The service changed its answer, or sent a damaged one.

Fix it

  1. Do not retry: the same answer will come back.
  2. Report it to Capxul support with the request reference.

In JSON and the SDK

With --json, the CLI prints:

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

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