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

Lambda Function test returns error re: session applicationId #150

Open
pullejo opened this issue Apr 3, 2017 · 1 comment
Open

Lambda Function test returns error re: session applicationId #150

pullejo opened this issue Apr 3, 2017 · 1 comment

Comments

@pullejo
Copy link

pullejo commented Apr 3, 2017

I'm guessing I don't have the correct application Id somewhere and I'm having trouble figuring out where.

When I run the test:

{
"session": {
"new": true,
"sessionId": "session1234",
"attributes": {},
"user": {
"userId": null
},
"application": {
"applicationId": " amzn1.ask.skill.9c3e5fcc-fea0-4036-bec3-3c40edd2e000"
}
},
"version": "1.0",
"request": {
"intent": {
"slots": {
"Preset": {
"name": "Preset",
"value": "test"
}
},
"name": "PlayPresetIntent"
},
"type": "IntentRequest",
"requestId": "request5678"
}
}

I get the result:

START RequestId: c36e5ad9-18c6-11e7-8abb-8b046775aaa7 Version: $LATEST
2017-04-03T23:39:21.947Z c36e5ad9-18c6-11e7-8abb-8b046775aaa7 session applicationId: amzn1.ask.skill.9c3e5fcc-fea0-4036-bec3-3c40edd2e000
2017-04-03T23:39:21.947Z c36e5ad9-18c6-11e7-8abb-8b046775aaa7 The applicationIds don't match : amzn1.ask.skill.9c3e5fcc-fea0-4036-bec3-3c40edd2e000 and amzn1.ask.skill.9c3e5fcc-fea0-4036-bec3-3c40edd2e000
2017-04-03T23:39:21.947Z c36e5ad9-18c6-11e7-8abb-8b046775aaa7 Unexpected exception Invalid applicationId
2017-04-03T23:39:21.947Z c36e5ad9-18c6-11e7-8abb-8b046775aaa7 {"errorMessage":"Invalid applicationId"}
END RequestId: c36e5ad9-18c6-11e7-8abb-8b046775aaa7
REPORT RequestId: c36e5ad9-18c6-11e7-8abb-8b046775aaa7 Duration: 0.39 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 28 MB

Where do I have my application ID messed up?

@pheintzelman
Copy link
Contributor

You shouldn't publicly post your app-id.

My guess is that you didn't properly link your skill to your lambda app.
Try using the test tool in the skill.

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

No branches or pull requests

3 participants