Autorisierung der Verbindung fehlgeschlagen
Bei diesem Problem antwortet die API mit 422 Unprocessable Content. Der Wert von type ist https://lingo.dev/docs/api/errors/connection-oauth-failed. Unter Fehler und Statuscodes findest du die gemeinsame Struktur aller Fehler.
Die Autorisierung ist abgelaufen: Sie muss innerhalb von zehn Minuten abgeschlossen sein. Starte den Verbindungsvorgang erneut.
Felder#
Neben den Standardfeldern type, status, title und detail enthält der Antwort-Body die folgenden Felder. Der Text in detail wird aus diesen Feldern erstellt, sodass ein Client stattdessen einen eigenen Text anzeigen kann.
| Feld | Typ |
|---|---|
returnPath | string |
reason | ConnectionOAuthStateExpired | 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"
}