פתרון בעיות בקודי שגיאה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בדף הזה מתוארים חלק מקודי השגיאות הנפוצים שאתם עשויים להיתקל בהם במהלך השימוש ב-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"
}
]
}
}
כדי להימנע מהשגיאה הזו, אפשר לצמצם את מספר המכשירים או המשתמשים על ידי שליחת שאילתות עם מסננים, כדי שהפעולות הנפרדות לא ייקחו יותר משעה. הגישה הזו דורשת כמה שאילתות. מידע נוסף זמין במאמר חיפוש מכשירים.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-03-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-03-25 (שעון UTC)."],[],[],null,["# Troubleshoot error codes\n\nThis page describes some common error codes that you might encounter while using\nthe Directory API.\n\n`503 Service unavailable`\n-------------------------\n\nWhile using the `nextPageToken` method to retrieve a large list of users or\ndevices, you might encounter this error if the request takes longer than 60\nminutes. This error is due to a limitation of the Directory API.\n\nThe following is the full error response: \n\n```\n{\n \"error\": {\n \"code\": 503,\n \"message\": \"Service unavailable. Please try again\",\n \"errors\": [\n {\n \"message\": \"Service unavailable. Please try again\",\n \"domain\": \"global\",\n \"reason\": \"backendError\"\n }\n ]\n }\n}\n```\n\nTo avoid this error, you can reduce the number of devices or users by querying\nwith filters so that the individual operations don't take over an hour to\ncomplete. This approach requires multiple queries. For more information, see\n[Search for devices](/workspace/admin/directory/v1/guides/search-devices)."]]