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

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