Lambda Alex Skill 会话属性未定义
Lambda Alex Skill session attribute is undefined
我在尝试上传文件时在 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)"
]
}
看起来像 AlexaSkill.js 的第 83 行:
console.log("session applicationId: " + event.session.application.applicationId);
会话属性未定义。不太确定是什么原因造成的
我已经用我的夏洛克·福尔摩斯般的技能弄明白了,从犯了过多的错误中获得,进入你的 aws lambda 帐户,转到你的功能,因为你已经上传了代码,点击操作 - >配置测试event->select "Alexa start session" 来自示例事件模板,并在底部单击保存并测试按钮,在那里,它有效:)
如果您找到这个答案来解决您的问题,请为我的答案打勾
我在尝试上传文件时在 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)"
]
}
看起来像 AlexaSkill.js 的第 83 行:
console.log("session applicationId: " + event.session.application.applicationId);
会话属性未定义。不太确定是什么原因造成的
我已经用我的夏洛克·福尔摩斯般的技能弄明白了,从犯了过多的错误中获得,进入你的 aws lambda 帐户,转到你的功能,因为你已经上传了代码,点击操作 - >配置测试event->select "Alexa start session" 来自示例事件模板,并在底部单击保存并测试按钮,在那里,它有效:)
如果您找到这个答案来解决您的问题,请为我的答案打勾