question

Amazon Customer avatar image
Amazon Customer asked

Skill works in Lamda not in test of app - Response is invalid.

I have successfully tested my skill in Lamda however when i test it in the skills page i get an error "Response is invalid". Also when i test it on Echo it says there was a problem with the response. Can someone point me in the right direction? thanks much. Rhoid
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
Lambda just tests that the response comes back, not that the response is correctly formatted. There's probably an error in your JSON somewhere. Stick it into a JSON formatter and see if anything leaps out. If it isn't a structural problem, then you've got a parameter wrong in there somewhere. I'd suggest testing with EchoSim, but that's a bit out of date by now.
10 |5000

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

justin avatar image
justin answered
Hey Rhoid, We hope you were able to figure this out, and please feel free to post up any sample code if not! Jjaquinta's right - it sounds like it either is some kind of formatting issue, or your intentHandlers are not pointing to a valid function (typos). Thanks, Justin
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
hey, thanks for the tips however it was a dumb newb error. I was pointing at the wrong ARN function. Works like a champ now. thanks again for responding. Are they any good examples of using SSML with javascript? I would like to use the phonetic option. Rhoid
10 |5000

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