연결 승인 실패
이 문제가 발생하면 API는 422 Unprocessable Content을 반환합니다. 이 오류의 type은 https://lingo.dev/docs/api/errors/connection-oauth-failed입니다. 모든 오류의 공통 구조는 오류 및 상태 코드에서 확인하세요.
승인 시간이 만료되었습니다. 승인은 10분 이내에 완료해야 합니다. 연결을 다시 시작하세요.
필드#
본문에는 표준 멤버인 type, status, title, detail 외에 다음 필드가 포함됩니다. detail 텍스트는 이 필드를 바탕으로 생성되므로, 클라이언트에서 자체 문구를 대신 표시할 수 있습니다.
| 필드 | 유형 |
|---|---|
returnPath | string |
reason | ConnectionOAuthStateExpired | ConnectionOAuthStateUsed | ConnectionOAuthDenied | ConnectionOAuthExchangeFailed | ConnectionOAuthAccountNotGranted | ConnectionOAuthChoiceUnknown | ConnectionNameTaken | ConnectionAlreadyExists | ConnectionAccountMismatch | ConnectionNotAdopted | ConnectionNotFound |
예시#
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"
}