【发布时间】:2018-10-27 17:49:00
【问题描述】:
sendCommandToDevice 端点似乎不可用。我尝试直接从设备页面上的云控制台发送命令。左下角的通知说,Command sent to device,但 chrome 上的检查器显示 503 错误。错误时间:2018 年 10 月 27 日星期六 17:46:02 UTC
请求:
Request URL: https://cloudiot.clients6.google.com/v1/projects/<project-id>/locations/<location-name>/registries/<registry-name>/devices/<device-name>/:sendCommandToDevice?key=<removed>
Request Method: POST
Status Code: 503
Remote Address: 216.58.196.74:443
Referrer Policy: no-referrer-when-downgrade
Payload: {binaryData: "eyJ0ZXN0IjoxfQ==", subfolder: ""}
回复:
{
"error": {
"code": 503,
"message": "The service is currently unavailable.",
"status": "UNAVAILABLE"
}
}
另外,还有一个注意事项,sendCommandToDevice 在 nodejs 客户端库 (34.0.0) 中不可用。我必须进行 API 发现才能使该方法可用。
【问题讨论】:
标签: google-cloud-platform google-cloud-iot