アカウントへのアクセスが許可されていません

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

API は 422 Unprocessable Content とともにこの問題を返します。type は https://lingo.dev/docs/api/errors/connection-oauth-account-not-granted です。すべてのエラーに共通する形式については、エラーとステータスコードを参照してください。

認可を行った GitHub ユーザーが対象の GitHub アカウントにアクセスできないため、何も接続されませんでした。そのアカウントにアクセスできる GitHub ユーザーで認可を行ってください。

フィールド#

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

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

例#

json
{
  "detail": "The GitHub user who authorized cannot access that GitHub account, so nothing was connected. Authorize as a GitHub user who can.",
  "provider": "github",
  "account": "<account>",
  "type": "https://lingo.dev/docs/api/errors/connection-oauth-account-not-granted",
  "status": 422,
  "title": "Account not granted"
}