Accès au compte non accordé

Moses SkodaIngénieur1 min de lecture

L’API renvoie 422 Unprocessable Content accompagné de ce problème. Son type est https://lingo.dev/docs/api/errors/connection-oauth-account-not-granted. Consultez Erreurs et codes d’état 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 en tant qu’utilisateur GitHub ayant accès à ce compte.

Champs#

Outre les membres standard type, status, title et detail, le corps contient les champs suivants. Le texte de detail est généré à partir de ces champs : un client peut donc afficher son propre texte à la place.

ChampType
provider"github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend"
accountstring

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