未获账号访问授权
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" |
account | string |
示例#
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"
}