Verbindung besteht bereits
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 gemeinsame Struktur aller Fehler.
<account> ist mit einer anderen Organisation verbunden. Ein GitHub-Konto kann jedoch nur einer Organisation zugeordnet sein. Trenne zuerst die Verbindung in der anderen Organisation.
Felder#
Neben den Standardfeldern type, status, title und detail enthält der Antwortkörper die folgenden Felder. Aus ihnen wird der Text in detail erstellt. Ein Client kann daher stattdessen einen eigenen Text anzeigen.
| Feld | Typ |
|---|---|
provider | "github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend" |
account | string |
elsewhere | boolean |
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"
}