question

newuser-913d4592-776c-43c8-a33e-9320b34aacf0 avatar image

ASK Simulator and Alexa Console Fail but Lambda Test succeeds

I had a working lambda--Alexa console skill but then I added support for persistence of variables using DynamoDB. Since this created such a large package that I could no longer use in the line code editor, I created a new project with the ask-cli and basic copied and pasted these things to the new project. Then deployed it via 'ask deploy'. This created a new lambda function and a new skill in the console like I expected.

I then used the Alexa console to generate a test for the lambda function that pushed the 'LaunchRequest' using an 'open skill'. Then using that I was able to make sure the lambda skill was working and returned my welcome speech in the SSML file. However if I still try to use the console or the 'ask simulate' I get error states. The ask simulate returns 'Request to skill endpoint results in an error'.

I did add the AmazonDynamoDBFullAccess policy to the new role which allowed the test to run on the lambda console. Then commented them out in case.

Checked then to make sure that the 'ask deploy' put the correct endpoint in the skill on the console and that seems correct as well.

I am out of ideas... anybody have any other solutions?

lambdaask clialexa simulatordev console
10 |5000

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

newuser-913d4592-776c-43c8-a33e-9320b34aacf0 avatar image
newuser-913d4592-776c-43c8-a33e-9320b34aacf0 answered

It looks like even though I have the correct endpoint in the .ask file and on the Alexa console, the endpoint that the validate and the console are using is the old end point.

10 |5000

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

newuser-913d4592-776c-43c8-a33e-9320b34aacf0 avatar image
newuser-913d4592-776c-43c8-a33e-9320b34aacf0 answered

Seems like the console cannot handle two different skills with similar names. One name test and then test again and it seems to get confused. I deleted test and the now everything works great.

10 |5000

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