Accès au compte non accordé
L’API renvoie 422 Unprocessable Content avec ce problème. Son type est https://lingo.dev/docs/api/errors/connection-oauth-account-not-granted. Consultez Erreurs et codes de statut pour connaître la structure commune à toutes les erreurs.
L’utilisateur GitHub qui a accordé l’autorisation n’a pas accès à ce compte GitHub. Aucune connexion n’a donc été établie. Accordez l’autorisation depuis un compte utilisateur GitHub disposant de cet accès.
Champs#
En plus des membres standard type, status, title et detail, le corps contient les champs suivants. Le texte detail est généré à partir de ces champs, ce qui permet à un client d’afficher son propre texte à la place.
| Champ | Type |
|---|---|
provider | "github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend" |
account | string |
Exemple#
json
{
"detail": "The GitHub user who authorized cannot access that GitHub account, so nothing was connected. Authorize as a GitHub user who can.",
"provider": "github",
"account": "<account>",
"type": "https://lingo.dev/docs/api/errors/connection-oauth-account-not-granted",
"status": 422,
"title": "Account not granted"
}