Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response allways null #5

Open
bogdanioanliviu opened this issue Nov 12, 2018 · 3 comments
Open

Response allways null #5

bogdanioanliviu opened this issue Nov 12, 2018 · 3 comments

Comments

@bogdanioanliviu
Copy link

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.

@EtienneMD
Copy link
Owner

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.

@bogdanioanliviu
Copy link
Author

Added new test CleanIntent, and the result is :

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

@EtienneMD
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants