오류 코드 문제 해결하기
이 페이지에서는 Directory API를 사용할 때 발생할 수 있는 몇 가지 일반적인 오류 코드를 설명합니다.
503 Service unavailable
nextPageToken
메서드를 사용하여 사용자 또는 기기의 대규모 목록을 가져오는 동안 요청에 60분이 넘게 걸리는 경우 이 오류가 발생할 수 있습니다. 이 오류는 Directory API의 제한으로 인해 발생합니다.
다음은 전체 오류 응답입니다.
{
"error": {
"code": 503,
"message": "Service unavailable. Please try again",
"errors": [
{
"message": "Service unavailable. Please try again",
"domain": "global",
"reason": "backendError"
}
]
}
}
이 오류를 방지하려면 필터를 사용하여 쿼리하여 개별 작업이 완료되는 데 1시간 넘게 걸리지 않도록 기기 또는 사용자 수를 줄일 수 있습니다. 이 접근 방식에는 여러 쿼리가 필요합니다. 자세한 내용은 기기 검색을 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-01-27(UTC)
[null,null,["최종 업데이트: 2025-01-27(UTC)"],[[["This page provides information about common Directory API error codes."],["The `503 Service unavailable` error can occur when retrieving large lists of users or devices if the request exceeds 60 minutes."],["To prevent this error, use filters to reduce the number of users or devices in each query, potentially requiring multiple queries."]]],[]]