question

newuser-f630c1e9-94a8-4d90-a8e4-35364a333978 avatar image
newuser-f630c1e9-94a8-4d90-a8e4-35364a333978 asked ·

How to send AddOrUpdate event to alexa event gateway?

I have gone through the documentation and done as it was there but I was getting the

"payload": {

"code": "INVALID_REQUEST_EXCEPTION",

"description": "The request was malformed."

}


smart-homealexa-skills-kitaddorupdatereport
10 |2000 characters needed characters left characters exceeded

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

1 Answer

KirkC@Amazon avatar image
KirkC@Amazon answered ·

Hello. When interacting with the Alexa Event Gateway, an "INVALID_REQUEST_EXCEPTION" will be encountered when the message provided is missing fields, provides incorrect values or contains malformed JSON:
https://developer.amazon.com/en-US/docs/alexa/smarthome/send-events-to-the-alexa-event-gateway.html#error-codes

Beyond that, without seeing the JSON that was sent, I'm unable to comment as to what could have happened in this specific instance.

If you'd like to provide your request JSON, please feel free to reply. Just be sure to redact the payload.scope.token value.

10 |2000 characters needed characters left characters exceeded

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