Verbindung besteht bereits

Moses SkodaEntwickler1 Min. Lesezeit

Bei diesem Problem antwortet die API mit 409 Conflict. Der Wert von type ist https://lingo.dev/docs/api/errors/connection-already-exists. Unter Fehler und Statuscodes findest du die Struktur, die alle Fehler gemeinsam haben.

<account> ist mit einer anderen Organisation verbunden. Ein GitHub-Konto kann nur einer Organisation angehören. Trenne die Verbindung zuerst dort.

Felder#

Neben den Standardfeldern type, status, title und detail enthält der Antworttext die folgenden Felder. Aus ihnen wird der Text in detail erstellt. Ein Client kann daher stattdessen einen eigenen Text anzeigen.

FeldTyp
provider"github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend"
accountstring
elsewhereboolean

Beispiel#

json
{
  "detail": "<account> is connected to another organization, and a GitHub account can belong to one organization only. Disconnect it there first.",
  "provider": "github",
  "account": "<account>",
  "elsewhere": true,
  "type": "https://lingo.dev/docs/api/errors/connection-already-exists",
  "status": 409,
  "title": "Connection already exists"
}