Autorisierung der Verbindung fehlgeschlagen

Moses SkodaEntwickler1 Min. Lesezeit

Die API gibt bei diesem Problem 422 Unprocessable Content zurück. Der Wert von type ist https://lingo.dev/docs/api/errors/connection-oauth-failed. Unter Fehler und Statuscodes findest du die Struktur, die allen Fehlern gemeinsam ist.

Die Autorisierung ist abgelaufen: Sie muss innerhalb von zehn Minuten abgeschlossen werden. Starte den Verbindungsvorgang erneut.

Felder#

Neben den Standardfeldern type, status, title und detail enthält der Antworttext die folgenden Felder. Aus diesen Feldern wird der Text in detail erstellt, sodass ein Client stattdessen einen eigenen Text anzeigen kann.

FeldTyp
returnPathstring
reasonConnectionOAuthStateExpired | ConnectionOAuthStateUsed | ConnectionOAuthDenied | ConnectionOAuthExchangeFailed | ConnectionOAuthAccountNotGranted | ConnectionOAuthChoiceUnknown | ConnectionNameTaken | ConnectionAlreadyExists | ConnectionAccountMismatch | ConnectionNotAdopted | ConnectionNotFound

Beispiel#

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