Maps Datasets API จะแสดงข้อความแสดงข้อผิดพลาดเป็นส่วนหนึ่งของการตอบกลับ ตัวอย่างเช่น หากคุณละเว้นโทเค็น OAuth จากคำขอหรือหากโทเค็นหมดอายุ คำขอจะแสดงผลดังนี้
{"error":{"code":401,"message":"Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.","status":"UNAUTHENTICATED","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"CREDENTIALS_MISSING","domain":"googleapis.com","metadata":{"method":"google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasets","service":"mapsplatformdatasets.googleapis.com"}}]}}
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2025-01-14 UTC"],[[["The Maps Datasets API returns errors with codes, messages, and status information to help you troubleshoot issues."],["Common errors include missing or expired authentication credentials (401), missing required parameters (400), and invalid dataset IDs (404)."],["Error responses provide details about the cause of the error, such as the missing credential or parameter."],["Refer to the Google Cloud error documentation for comprehensive information on error handling and troubleshooting."]]],[]]