[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Other... Please describe:
Following the directions and using the sample code for all handlers and the first code option under "Creating the Lambda Handler" results in post-deployment run-time error during skill invocation. The lambda code does not return a response to Alexa because the 'ErrorHandler', which is needed by the sample code (line: ".addErrorHandlers(ErrorHandler)), is not defined nor called for in the sample code or instructions.
FROM CLOUDWATCH.....
2018-05-31T13:28:18.370Z 7a9627c2-64d6-11e8-a585-1d031e261323
{
"errorMessage": "ErrorHandler is not defined",
"errorType": "ReferenceError",
"stackTrace": [
"exports.handler (/var/task/index.js:96:25)"
]
}
Possible Solution
// Not required, but suggest a fix/reason for the bug,
// or ideas how to implement the addition or change
Add instructions and sample code to define "ErrorHandler.'"
Steps to Reproduce (for bugs)
// Provide a self-contained, concise snippet of code
// For more complex issues provide a repo with the smallest sample that reproduces the bug
// Including business logic or unrelated code makes diagnosis more difficult
As stated, simple follow the instructions, beginning to end, for "Developing Your First Skill", making sure to use the first code option for "Creating Lambda Handler"
Context
I have used ASK V1 previously and was attempting to build my first ASK V2 skill.
I'm submitting a...
Expected Behavior
I expect to be able to follow the directions and sample code provided on page "Developing Your First Skill" (https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/wiki/Developing-Your-First-Skill) to create an Alexa skill that deploys and runs without error.
Current Behavior
Following the directions and using the sample code for all handlers and the first code option under "Creating the Lambda Handler" results in post-deployment run-time error during skill invocation. The lambda code does not return a response to Alexa because the 'ErrorHandler', which is needed by the sample code (line: ".addErrorHandlers(ErrorHandler)), is not defined nor called for in the sample code or instructions.
FROM CLOUDWATCH..... 2018-05-31T13:28:18.370Z 7a9627c2-64d6-11e8-a585-1d031e261323 { "errorMessage": "ErrorHandler is not defined", "errorType": "ReferenceError", "stackTrace": [ "exports.handler (/var/task/index.js:96:25)" ] }
Possible Solution
Add instructions and sample code to define "ErrorHandler.'"
Steps to Reproduce (for bugs)
As stated, simple follow the instructions, beginning to end, for "Developing Your First Skill", making sure to use the first code option for "Creating Lambda Handler"
Context
I have used ASK V1 previously and was attempting to build my first ASK V2 skill.
Your Environment
Node.js and NPM Info