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

Fix event type #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix event type #12

wants to merge 3 commits into from

Conversation

dottxado
Copy link

@dottxado dottxado commented Oct 3, 2020

Alexa payloads are different based on the request type: if the type is "IntentRequest" there is also the "name" of the intent, who is configured in the Alexa developer portal by the developer; but if the type is "LaunchRequest" or "SessionEndedRequest" there is no "name" field, resulting in an error. These special types are used from Alexa to send the first opening of the skill (when you open a skill without declaring an intent) or when it needs to be closed gracefully.

With this PR my aim is to add the management of these requests so that it doesn't break anything. Tested with unit tests and with a production application.

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

Successfully merging this pull request may close these issues.

1 participant