Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

Amazon Customer avatar image
Amazon Customer asked

How to handle "SessionEndedRequest" requestType in http endpoint

I have http endpoint for all requestTypes. For all "sessionEndedRequest" request type, I am responding with an empty object "{}". Unfortunately this makes Alexa mad. Alexa says "There was a problem communicating with the requested skill" .... I tried to respond null but same results. I also tried sending 204 status ie no content but same thing. Certification team is not responding to my emails. Please help on how to handle "sessionEndedRequest" in https endpoint scenario (not lambda function). Thanks. Salim
alexa skills kitsubmission testing certification
10 |5000

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

jjaquinta avatar image
jjaquinta answered
The certification team never responds to anything. This is an major issue and complain in a lot of threads. Anyhow. I don't think you need to have any response to session ended. Certainly in the Java API there isn't the option to give a return value for the session ended stub: [code]public void onSessionEnded(final SessionEndedRequest request, final Session session)[/code] If you are doing all the session handling yourself, I'd just close the connect and have done with it.
10 |5000

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

Levon@Amazon avatar image
Levon@Amazon answered
Yes, that is correct -- you don't need to have any response. It is essentially a place to allow you to clean up any resources on your end and is not meant to be responded to. However, the current experience of erroring out if you respond something seems unusual, and we could not reproduce that behavior on our end. Therefore, if you'd like us to investigate this further, please provide the following information: - customerID - applicationID - timestamp showing when you faced this problem For that, it's best to use the Contact Us link in your Distribution Portal account: https://developer.amazon.com/help/contact-us.html and include the URL to this forum thread. Thanks!
10 |5000

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

Amazon Customer avatar image
Amazon Customer answered
We were able to figure it out... The response with empty body "{}" is the trick to not get any error. Any other response caused Alexa to get confused. Thank you for your help.
1 comment
10 |5000

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

Thanks for the trick! Saved me :)

0 Likes 0 ·