接続がすでに存在します

Moses Skodaエンジニア読了目安 1分

この問題が発生すると、API は 409 Conflict を返します。type は https://lingo.dev/docs/api/errors/connection-already-exists です。すべてのエラーに共通する形式については、エラーとステータスコードを参照してください。

<account> は別の組織に接続されています。GitHub アカウントが所属できる組織は一つだけです。まず、その組織で接続を解除してください。

フィールド#

レスポンス本文には、標準のメンバーである type、status、title、detail に加え、以下のフィールドが含まれます。detail のテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストに置き換えて表示できます。

フィールド型
provider"github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend"
accountstring
elsewhereboolean

例#

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"
}