500 Internal Error: Google Device Access API

420 views Asked by At

I am making the following request to generate an image url from a NEST Camera device (documentation i'm following)

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"}
}'

And I am met with the following error response:

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

Whether or not I give a valid eventId I get this error response. There is no issues with my AUTH.

I have checked the status of Google's API and they're not reporting any downtime, I am sure the issue is something I am doing wrong, but can't figure out what.

0

There are 0 answers