การจัดการข้อผิดพลาด
ต่อไปนี้คือรหัสข้อผิดพลาดที่คุณอาจได้รับเมื่อใช้ Alert Center API พร้อมคำอธิบายเกี่ยวกับวิธีตีความและคำแนะนำเกี่ยวกับสิ่งที่ต้องทำเมื่อได้รับรหัสข้อผิดพลาด ดูข้อมูลเพิ่มเติม
รหัสข้อผิดพลาด |
คำอธิบาย |
การดำเนินการ |
400: คำขอไม่ถูกต้อง |
ระบบจะแสดงรหัสข้อผิดพลาดนี้เมื่อคำขออินพุตมีข้อผิดพลาด |
โปรดตรวจสอบคำขอ ทำการเปลี่ยนแปลงที่จำเป็นในคำขอ แล้วลองอีกครั้ง |
401: ข้อมูลเข้าสู่ระบบไม่ถูกต้อง |
โทเค็นการเข้าถึงไม่ถูกต้องหรือหมดอายุ |
โปรดรีเฟรชโทเค็นการเข้าถึงแล้วลองอีกครั้ง |
404 |
ไม่พบทรัพยากรที่ระบุ ข้อผิดพลาดนี้จะแสดงขึ้นเมื่อการแจ้งเตือนที่ขอไม่มีอยู่ |
|
409 |
มีทรัพยากรที่ระบุอยู่แล้ว |
รับทรัพยากรและทำการอัปเดต หากจำเป็น |
500 |
เกิดข้อผิดพลาดที่ไม่คาดคิดขณะประมวลผลคําขอ |
ลองอีกครั้งโดยใช้ Exponential Backoff |
503 |
เกินขีดจำกัดของอัตรา |
ลองอีกครั้งโดยใช้ Exponential Backoff |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]