我正在发出以下请求以从 NEST 相机设备生成图像 url(我正在关注的文档)
curl -X POST 'https://smartdevicemanagement.googleapis.com/v1/enterprises/{PROJECTID}/devices/{DEVICEID}:executeCommand' -H 'Content-Type: application/json'
-H 'Authorization: Bearer {TOKEN}' --data-raw '{
"command" : "sdm.devices.commands.CameraEventImage.GenerateImage",
"params" : {"eventId" : "c4c58a0"}
}'
我遇到了以下错误响应:
{
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
}
无论我是否给出有效的信息eventId
,我都会收到此错误响应。我的 AUTH 没有问题。
我检查了谷歌 API 的状态,他们没有报告任何停机时间,我确信问题是我做错了,但不知道是什么。