Autorizace připojení se nezdařila
Při tomto problému API vrací odpověď 422 Unprocessable Content. Hodnota type je https://lingo.dev/docs/api/errors/connection-oauth-failed. Společnou strukturu všech chyb najdete v části Chyby a stavové kódy.
Platnost autorizace vypršela. Je nutné ji dokončit do deseti minut. Zahajte připojení znovu.
Pole#
Kromě standardních položek type, status, title a detail obsahuje tělo odpovědi následující pole. Z nich se sestavuje text detail, takže klient může místo něj zobrazit vlastní text.
| Pole | Typ |
|---|---|
returnPath | string |
reason | ConnectionOAuthStateExpired | ConnectionOAuthStateUsed | ConnectionOAuthDenied | ConnectionOAuthExchangeFailed | ConnectionOAuthAccountNotGranted | ConnectionOAuthChoiceUnknown | ConnectionNameTaken | ConnectionAlreadyExists | ConnectionAccountMismatch | ConnectionNotAdopted | ConnectionNotFound |
Příklad#
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"
}