接続の認可に失敗しました

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

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

認可の有効期限が切れました。認可は10分以内に完了する必要があります。接続を最初からやり直してください。

フィールド#

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

フィールド型
returnPathstring
reasonConnectionOAuthStateExpired | ConnectionOAuthStateUsed | ConnectionOAuthDenied | ConnectionOAuthExchangeFailed | ConnectionOAuthAccountNotGranted | ConnectionOAuthChoiceUnknown | ConnectionNameTaken | ConnectionAlreadyExists | ConnectionAccountMismatch | ConnectionNotAdopted | ConnectionNotFound

例#

json
{
  "detail": "The authorization expired: it has to finish within ten minutes. Start connecting again.",
  "returnPath": "/settings/integrations",
  "reason": {
    "_tag": "ConnectionOAuthStateExpired"
  },
  "type": "https://lingo.dev/docs/api/errors/connection-oauth-failed",
  "status": 422,
  "title": "Connection authorization failed"
}