question

carter avatar image
carter asked

"Response is invalid"

I recently started programming with the echo, finally got it to notice my handler, tried my luck at testing it and got this: http://pastebin.com/aFrd3L5C Along with a "Response is invalid". I'm not sure what's wrong, any help? Message was edited by: carter
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.

carter avatar image
carter answered
I probably shouldve mentioned that also, this is what happens in the Lambda log console/error reporting: http://pastebin.com/mVp8GGzx
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
I'm guessing you are implementing in Java here. Not sure since you don't give complete details. But judging by the error message I would say the Java library is failing to matching the incoming application ID with the one defined in your class. You need to either set the application ID from the dev console in your app, or turn off application ID matching. Following the fairly well written tutorials by Amazon step by step is your best chance of success.
10 |5000

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

carter avatar image
carter answered
I did try following then step by step, multiple times. And I've tried checking to make sure the skill has the same Id. How would I turn off matching?
10 |5000

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

carter avatar image
carter answered
And how would I set application Id in the app? Isn't it set? I just checked to see if the application id in my code and the application id in the session JSON response were the same, and they are, so I'm assuming my best bet would be to disable it. Thank for you for replying so quickly by the way! <3 Message was edited by: carter Message was edited by: carter
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
I'm still guessing what you are implementing in. Being forthcoming makes it easier for people so inclined to help you. This tells you how to set the properties externally: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/deploying-a-web-service-for-an-alexa-skill-to-aws-elastic-beanstalk#Setting%20Java%20System%20Properties%20for%20Elastic%20Beanstalk Normally I just set them in the code.
10 |5000

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

carter avatar image
carter answered
Sorry, yes I am using Java. I'm using AWS Lambda, not beanstalk/web services. When I get home I'm going to take out the auth code from the handler and see if that works (since this is just a skill I want to use specifically in my house so it won't be published)
10 |5000

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