טיפול בשגיאות
בהמשך מפורטים קודי השגיאות שעשויים להופיע כשמשתמשים ב-Alert Center API, יחד עם הסבר על האופן שבו צריך לפרש אותם והנחיות לגבי הפעולות שצריך לבצע כשהם מופיעים. מידע נוסף
קוד שגיאה |
תיאור |
פעולה |
400: Bad Request |
קוד השגיאה הזה מוחזר כשיש שגיאה בבקשת הקלט. |
בודקים את הבקשה, מבצעים את השינויים הנדרשים בבקשה ומנסים שוב. |
401: פרטי כניסה לא חוקיים |
אסימון הגישה לא תקין או שתוקפו פג. |
מרעננים את אסימון הגישה ומנסים שוב. |
404 |
המשאב שצוין לא נמצא. ההודעה הזו תוצג אם ההתראה המבוקשת לא קיימת. |
|
409 |
המשאב שצוין כבר קיים. |
מקבלים את המשאב, ואם צריך מבצעים עדכון. |
500 |
אירעה שגיאה לא צפויה במהלך עיבוד הבקשה. |
מנסים שוב עם השהיה מעריכית לפני ניסיון חוזר (exponential backoff). |
503 |
חרגת ממגבלת הקצב של שליחת בקשות. |
מנסים שוב עם השהיה מעריכית לפני ניסיון חוזר (exponential backoff). |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-18 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-18 (שעון UTC)."],[[["This page lists error codes you might encounter when using the Alert Center API, along with their descriptions and suggested actions."],["Error codes range from bad requests (400) to server errors (500) and include issues like invalid credentials and rate limiting."],["Each error code has a recommended action, such as checking the request or refreshing the access token, to help you resolve the issue."],["For unexpected errors (500) and rate limiting (503), retrying with exponential backoff is recommended."]]],["The Alert Center API uses several error codes: 400 indicates a bad request requiring corrections, 401 means the access token needs refreshing, 404 signifies a missing resource. 409 denotes a pre-existing resource requiring retrieval and potential update. 500 signifies an unexpected error, and 503 means the rate limit was exceeded; both necessitate retries using exponential backoff. Each error code offers specific actions for resolution.\n"]]