Alexa-Ecovacs icon indicating copy to clipboard operation
Alexa-Ecovacs copied to clipboard

Response allways null

Open bogdanioanliviu opened this issue 6 years ago • 3 comments

I'm trying to use youre code. The only modification i did is change from English to Spanish the invocation and the responses, rest is the same code. After setup in every test the following happens : 1 open my skill -> replay ok "Welcome to ...." 2 tell my skill to start cleaning -> replay KO "null" Can you please help with this issue.

bogdanioanliviu avatar Nov 12 '18 12:11 bogdanioanliviu

Sorry about the delay, I have been away for a while, but we will get this sorted out. Was the skill working before you changed languages? Make sure you keep the same intent names and try to run a CleanIntent test in the Lambda console to see if you get a response. Let me know how this goes.

EtienneMD avatar Dec 07 '18 14:12 EtienneMD

Added new test CleanIntent, and the result is :

"errorMessage": "'session'", "errorType": "KeyError", "stackTrace": [ [ "/var/task/skill.py", 193, "lambda_handler", "event['session']['application']['applicationId'])"

bogdanioanliviu avatar Dec 07 '18 15:12 bogdanioanliviu

Looks like your request is not in the expected format and the lambda fonction cannot find the applicationId. Your request should look something like this:

{ "session": { "new": true, "sessionId": "XXXXXXXXXXX", "application": { "applicationId": "amzn1.ask.skill.XXXXXXXXX" }, "attributes": {}, "user": { ......

You can try commenting out line 193 in the lambda console, it should not affect use of the skill.

EtienneMD avatar Dec 13 '18 03:12 EtienneMD