Connection unusable for decision pool

Moses SkodaEngineer1 min read

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/decision-pool-connection-unusable. See Errors and status codes for the shape every error shares.

Connection <connectionId> does not connect provider "<providerId>". Pick a connection of that provider.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
connectionIdstring
providerIdstring
reason"otherProvider" | "notAdopted" | "needsReauth"

Example#

json
{
  "detail": "Connection <connectionId> does not connect provider \"<providerId>\". Pick a connection of that provider.",
  "connectionId": "<connectionId>",
  "providerId": "<providerId>",
  "reason": "otherProvider",
  "type": "https://lingo.dev/docs/api/errors/decision-pool-connection-unusable",
  "status": 422,
  "title": "Connection unusable for decision pool"
}

Returned by#

  • POST /v2/organizations/{orgId}/decision-pools