เอกสารนี้ระบุรหัสข้อผิดพลาดและข้อความแสดงข้อผิดพลาดบางส่วนที่ Google APIs แสดง กล่าวอย่างเจาะจงคือข้อผิดพลาดในเอกสารนี้พบได้ในโดเมนส่วนกลางหรือโดเมนเริ่มต้นของ Google APIs นอกจากนี้ API หลายรายการจะกำหนดโดเมนของตนเอง ซึ่งระบุข้อผิดพลาดเฉพาะ API ที่ไม่ได้อยู่ในโดเมนส่วนกลาง สำหรับข้อผิดพลาดเหล่านั้น ค่าของพร็อพเพอร์ตี้ domain ในการตอบกลับ JSON จะเป็นค่าเฉพาะ API เช่น youtube.parameter
คำขอล้มเหลวเพราะมีพารามิเตอร์หรือค่าพารามิเตอร์ไม่ถูกต้อง อ่านเอกสารประกอบของ API เพื่อดูพารามิเตอร์ที่ใช้ได้กับคำขอของคุณ
invalidQuery
คำขอไม่ถูกต้อง อ่านเอกสารประกอบของ API เพื่อดูพารามิเตอร์ที่คำขอรองรับและดูว่าคำขอมีค่าผสมของพารามิเตอร์หรือค่าพารามิเตอร์ที่ไม่ถูกต้องหรือไม่ ตรวจสอบค่าของพารามิเตอร์คำขอ q
keyExpired
คีย์ API ที่ระบุไว้ในคำขอหมดอายุ ซึ่งหมายความว่าเซิร์ฟเวอร์ API ตรวจสอบขีดจำกัดโควต้าของแอปพลิเคชันที่ส่งคำขอไม่ได้ โปรดดูข้อมูลเพิ่มเติมหรือขอคีย์ใหม่ที่ Google Developers Console
keyInvalid
คีย์ API ที่ระบุในคำขอไม่ถูกต้อง ซึ่งหมายความว่าเซิร์ฟเวอร์ API ตรวจสอบขีดจำกัดโควต้าของแอปพลิเคชันที่ส่งคำขอไม่ได้ โปรดใช้ Google Developers Console เพื่อค้นหาคีย์ API หรือขอคีย์ใหม่
lockedDomainCreationFailure
ได้รับโทเค็น OAuth ในสตริงคำค้นหา ซึ่ง API ไม่อนุญาตรูปแบบการตอบกลับที่ไม่ใช่ JSON หรือ XML หากเป็นไปได้ ให้ลองส่งโทเค็น OAuth ในส่วนหัวการให้สิทธิ์แทน
คำขอล้มเหลวเพราะมีการใช้งาน API ที่ไม่ได้ตรวจสอบสิทธิ์ถึงขีดจำกัดรายวันแล้ว คุณต้องลงชื่อสมัครใช้ผ่าน Google Developers Console เพื่อใช้งาน API ดังกล่าวต่อไป
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-08-20 UTC"],[[["Google APIs utilize global error codes, identified by the `global` domain, alongside API-specific errors, each categorized by HTTP status codes as defined in RFC 7231."],["Errors include issues such as invalid requests (`badRequest`), authorization problems (`unauthorized`), quota or rate limit exceedances (`forbidden`), and resource conflicts (`conflict`)."],["Specific HTTP status codes are mapped to distinct error categories, such as 300-level codes for redirects, 400-level codes for client errors, and 500-level codes for server errors."],["Each error code contains details like the `domain`, `reason`, `message`, `locationType`, and `location` to specify where the error occurred and give more information."],["The document provides a comprehensive breakdown of these errors, including their causes and potential remedies, for all codes listed, besides the ones that contain no information in this given document."]]],["Google APIs return errors within a \"global\" domain or API-specific domains, categorized by HTTP status codes. Common redirection codes (3xx) indicate using a new URL. Client errors (4xx) include `BAD_REQUEST` for invalid requests, `UNAUTHORIZED` for authentication issues, and `FORBIDDEN` for access problems. Specific errors like `invalidParameter`, `quotaExceeded`, or `notFound` provide details. Codes 410, 412, 413, 416, 417, 428, 429, 500, 501, 503 cover issues such as resources being deleted or rate-limit issues.\n"]]