Connection authorization failed
The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/connection-oauth-failed. See Errors and status codes for the shape every error shares.
The authorization expired: it has to finish within ten minutes. Start connecting again.
Fields#
Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.
| Field | Type |
|---|---|
returnPath | string |
reason | ConnectionOAuthStateExpired | ConnectionOAuthStateUsed | ConnectionOAuthDenied | ConnectionOAuthExchangeFailed | ConnectionOAuthAccountNotGranted | ConnectionOAuthChoiceUnknown | ConnectionNameTaken | ConnectionAlreadyExists | ConnectionAccountMismatch | ConnectionNotAdopted | ConnectionNotFound |
Example#
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"
}