未获账户访问授权

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