I am developing a LockController, however I am getting the following error with the asynchronous response message:
INVALID_REQUEST_EXCEPTION : The request was malformed.
If I look at the documentation, it looks like the synchronous response message and the asynchronous message for a deferred response are identical. If I send the message I created synchronously it works fine (albeit the device hasn't locked since it takes time :)), however, if I send a deferred response message and then asynchronously send the exact same message I sent synchronously, I get an error.
Here's the async message Im sending (looks like the documentation and conforms to the schema):
{ "context": { "properties": [{ "namespace": "Alexa.LockController", "name": "lockState", "value": "LOCKED", "timeOfSample": "2018-05-09T17:19:02.86Z", "uncertaintyInMilliseconds": 500 }] }, "event": { "header": { "namespace": "Alexa", "name": "Response", "payloadVersion": "3", "messageId": "328521c5-b545-4bce-a12f-22ce479f51ac-D", "correlationToken": <correlation from original request> }, "endpoint": { "scope": { "type": "BearerToken", "token": <token from original lock request> }, "endpointId": "pi-door-lock" }, "payload": {} } }
Any thoughts on what I'm missing?
Thanks
/Chris