question

dnlm avatar image
dnlm asked

WOL/WakeUp api call returns 500 INTERNAL_SERVICE_EXCEPTION

Hi!

When I POST an Alexa.WakeOnLANController WakeUp request to https://api.eu.amazonalexa.com/v3/events I get a 500 INTERNAL_SERVICE_EXCEPTION

Docs say 'contact support' and I'm really out of ideas what could be the problem. Header and body both look okay to me.

Header:

POST /v3/events HTTP/1.1
Authorization: Bearer Atza|IwEBIIiGz...tMkQTy3
Content-Type: application/json
host: api.eu.amazonalexa.com
accept: application/json
content-length: 1536
Connection: close

Body:

{
  "event": {
    "header": {
      "namespace": "Alexa.WakeOnLANController",
      "name": "WakeUp",
      "messageId": "afc7d8df-d47b-49a9-8668-d4ae8030326d",
      "correlationToken": "AAAAAAAAAQB+zePmjsT3WFMzRNLHpTxKDAIAAAAAAAAegMEavYoapUylbB78Y2HRXmkXnz...Ii8NkIK9b9KY+AQ==",
      "payloadVersion": "3"
    },
    "endpoint": {
      "scope": {
        "type": "BearerToken",
        "token": "Atza|IwEBIIiGz...tMkQTy3"
      },
      "endpointId": "appliance-001"
    },
    "payload": {}
  },
  "context": {
    "properties": [
      {
        "namespace": "Alexa.PowerController",
        "name": "powerState",
        "value": "ON",
        "timeOfSample": "2019-03-13T02:34:03.988Z",
        "uncertaintyInMilliseconds": 0
      }
    ]
  }
}

Skill id is amzn1.ask.skill.45c0cdb1-8931-4a26-8672-1fec566ba9a5

A sample x-amzn-requestid would be 64a3ae8f-429b-45c3-8a78-9332225ebac5

apismart homeweb appsrequest
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

dnlm avatar image
dnlm answered

This is solved, turned out the discovery reply did not include the MACAddresses configuration because I used the AlexaResponse class which did not include that yet...

Really frustrating that the discovery went OK without a required parameter...

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.