question

thingamagig avatar image
thingamagig asked

Unhelpful error message when response size too large

I ran into an issue yesterday where my skill was crashing out sometimes, but not others, and the Cloudwatch error log showed almost nothing useful. All I got was

  "request": {
        "type": "SessionEndedRequest",
        "requestId": "amzn1.echo-api.request.d5e123asdfasdfa0cea0b",
        "timestamp": "2020-05-29T20:53:55Z",
        "locale": "en-US",
        "reason": "ERROR",
        "error": {
            "type": "INVALID_RESPONSE",
            "message": "An exception occurred while dispatching the request to the skill."
        }
    }

After a hour of console.log statements and process of elimination, I determined that the issue was response sizes that exceeded the limit.

Could we get a better way to track these down? A more useful error message? I'm sure others have faced this as well.

ask sdk
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

Gaetano@Amazon avatar image
Gaetano@Amazon answered

Hi,

Thanks for posting on our forums.

At the moment the SDK does not provide this information.

I'd suggest posting this as a feature request in Uservoice for Alexa over here.

Regards,
Gaetano

10 |5000

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