question

chris lies avatar image
chris lies asked

Another HelloWord Fail - Why?

I've got everything configured (or so I thought). - index.js and AlexaSkill.js are in index.zip. - handler is index.handler - role is lambda_basic_execution - event source is ASK - APP_ID is set to the unique ID But, the echo is having "trouble accessing" the helloWorld skill and the test from lambda returns the following error... what am I missing? { "errorMessage": "Unexpected token ILLEGAL", "errorType": "SyntaxError", "stackTrace": [ "Module._compile (module.js:439:25)", "Object.Module._extensions..js (module.js:474:10)", "Module.load (module.js:356:32)", "Function.Module._load (module.js:312:12)", "Module.require (module.js:364:17)", "require (module.js:380:17)" ] }
alexa skills kitdebugging
10 |5000

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

chris lies avatar image
chris lies answered
Doh! Simple problem. I was so eager to start playing with the echo that I forgot to quote the APP_ID.
10 |5000

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

Matt Cashatt avatar image
Matt Cashatt answered
To me, this is another example of why an emulator and debugger would be great. Notice that the error message you got didn't even point you to the Index.js where the problem lied; you had to find that yourself. While it was a simple mistake, you can't (in my opinion) unit test for this type of thing and get focused error feedback as others have suggested. Glad you were able to solve your issue!
10 |5000

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

chris lies avatar image
chris lies answered
I agree. An amazon supported simulator would be 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.