授权未完成

Moses Skoda工程师预计阅读 1 分钟

API 返回此错误时,状态码为 422 Unprocessable Content,其 type 为 https://lingo.dev/docs/api/errors/connection-oauth-exchange-failed。所有错误的通用结构,请参阅错误和状态码。

GitHub 未完成授权:<reason>。请重新发起连接。

字段#

除标准成员 type、status、title 和 detail 外,响应体还包含以下字段。detail 文本根据这些字段生成,因此客户端也可以显示自定义文本。

字段类型
provider"github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend"
reasonstring

示例#

json
{
  "detail": "GitHub did not complete the authorization: <reason>. Start connecting again.",
  "provider": "github",
  "reason": "<reason>",
  "type": "https://lingo.dev/docs/api/errors/connection-oauth-exchange-failed",
  "status": 422,
  "title": "Authorization not completed"
}