我有一个问题,当我在Lambda控制台中运行测试时,我的lambda函数正在工作,但在测试模拟器(Beta)中运行相同的代码时却没有。以下是我在这两个地方所做的事情,包括对敏感信息的修改:
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "xxxxx",
"application": {
"applicationId": "xxxxx"
},
"user": {
"userId": "xxxxx"
}
},
"context": {
"AudioPlayer": {
"playerActivity": "IDLE"
},
"Display": {
"token": ""
},
"System": {
"application": {
"applicationId": "xxxxx"
},
"user": {
"userId": "xxxxx"
},
"device": {
"deviceId": "xxxxx",
"supportedInterfaces": {
"AudioPlayer": {},
"Display": {
"templateVersion": "1.0",
"markupVersion": "1.0"
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "xxxxx"
}
},
"request": {
"type": "IntentRequest",
"requestId": "xxxxx",
"timestamp": "2018-02-13T05:22:11Z",
"locale": "en-US",
"intent": {
"name": "OpenTicketIntent",
"confirmationStatus": "NONE",
"slots": {
"Project": {
"name": "Project",
"confirmationStatus": "NONE"
},
"Assignee": {
"name": "Assignee",
"confirmationStatus": "NONE"
},
"TicketType": {
"name": "TicketType",
"value": "bug",
"resolutions": {
"resolutionsPerAuthority": [
{
"authority": "xxxxx",
"status": {
"code": "ER_SUCCESS_MATCH"
},
"values": [
{
"value": {
"name": "Bug",
"id": "xxxxx"
}
}
]
}
]
},
"confirmationStatus": "NONE"
},
"IssueTitle": {
"name": "IssueTitle",
"confirmationStatus": "NONE"
}
}
},
"dialogState": "STARTED"
}
}
当我要求我的技能在模拟器中打开时,它会完美打开。我得到了正确的答复。但是当我后来问一个问题时("打开一个错误"以及我在对话模型中有很多变化)我得到了#34;请求的技能出现了问题&# 39; s的回应"。难道我做错了什么?除非我使用物理设备,否则这不起作用?
答案 0 :(得分:1)
关于lambda函数的任何问题,你应该检查lambda函数的日志文件。
然后,您将被重定向到lambda函数的最新日志文件。我想你或者能够自己解决这个问题,或者为我们提供额外的错误信息。
干杯,马格努斯