การจัดการข้อผิดพลาด
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ต่อไปนี้คือรหัสข้อผิดพลาดที่คุณอาจได้รับเมื่อใช้ Alert Center API พร้อมคำอธิบายเกี่ยวกับวิธีตีความรหัสและคำแนะนำเกี่ยวกับสิ่งที่ต้องทำเมื่อได้รับรหัส ดูข้อมูลเพิ่มเติม
รหัสข้อผิดพลาด |
คำอธิบาย |
การดำเนินการ |
400: คำขอไม่ถูกต้อง |
ระบบจะแสดงรหัสข้อผิดพลาดนี้เมื่อคำขออินพุตมีข้อผิดพลาด |
โปรดตรวจสอบคำขอ ทำการเปลี่ยนแปลงที่จำเป็นในคำขอ แล้วลองอีกครั้ง |
401: ข้อมูลเข้าสู่ระบบไม่ถูกต้อง |
โทเค็นการเข้าถึงไม่ถูกต้องหรือหมดอายุ |
โปรดรีเฟรชโทเค็นการเข้าถึงแล้วลองอีกครั้ง |
404 |
ไม่พบทรัพยากรที่ระบุ ข้อผิดพลาดนี้จะแสดงขึ้นเมื่อการแจ้งเตือนที่ขอไม่มีอยู่ |
|
409 |
มีทรัพยากรที่ระบุอยู่แล้ว |
รับทรัพยากรและทำการอัปเดต หากจำเป็น |
500 |
เกิดข้อผิดพลาดที่ไม่คาดคิดขณะประมวลผลคําขอ |
ลองอีกครั้งโดยใช้ Exponential Backoff |
503 |
เกินขีดจำกัดของอัตรา |
ลองอีกครั้งโดยใช้ Exponential Backoff |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-25 UTC
[null,null,["อัปเดตล่าสุด 2025-03-25 UTC"],[],[],null,["# Error Handling\n\nThe following are the error codes you might get when using Alert Center API\nalong with explanation on how to interpret them and guidance on what to do when\nyou get them. [Learn more](/workspace/admin/alertcenter/support).\n\n| **Error code** | **Description** | **Action** |\n|------------------------------|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| **400: Bad Request** | This error code is returned when there is an error in the input request. | Check the request, make required changes to the request, and try again. |\n| **401: Invalid Credentials** | The access token is invalid or expired. | Refresh the access token and try again. |\n| **404** | The specified resource was not found. This would be thrown when the requested alert does not exist. | |\n| **409** | The specified resource already exists. | Get the resource, and if needed perform an update. |\n| **500** | An unexpected error happened while processing the request. | Retry with [exponential backoff](https://developers.google.com/api-client-library/java/google-http-java-client/backoff). |\n| **503** | Rate limit exceeded. | Retry with [exponential backoff](https://developers.google.com/api-client-library/java/google-http-java-client/backoff). |"]]