Lambda Alex Skill会话属性未定义

Sil*_*Dev 5 alexa aws-lambda alexa-skills-kit

我在尝试上传文件时在Lambda中收到此错误,

{
 "errorMessage": "Cannot read property 'application' of undefined",
"errorType": "TypeError",
"stackTrace": [
"AlexaSkill.execute (/var/task/AlexaSkill.js:83:62)",
"exports.handler (/var/task/index.js:170:10)"
]
}
Run Code Online (Sandbox Code Playgroud)

看起来像AlexaSkill.js的第83行:

console.log("session applicationId: " + event.session.application.applicationId);
Run Code Online (Sandbox Code Playgroud)

session属性未定义.不确定是什么造成的

Vis*_*art 5

我已经想出了使用我的sherlock holmes般的技能,从过多的错误中获得,进入你的aws lambda帐户,转到你的功能,因为你上传了代码,点击actions-> configure test event-> select" Alexa启动会话"从示例事件模板,在底部,单击保存和测试按钮,在那里,它工作:)

如果您找到这个答案来解决您的问题,请勾选我的答案