Comments (9)
@TDA, sorry for the confusion. I've been asked to go through and close out 'old' open Issues.
I closed this one because it's not an issue with the sample code.
"Exit" and "Quit" are reserved words for a 'hard exit' on a Session. They route to a System Intent that immediately ends the current session. The skill will receive a "SessionEndRequest" with the 'Reason' = "USER_INITIATED".
"SessionEndRequest" Request Type
So you don't need to handle for "Exit" and "Quit".
Sending a response to a Request Type of 'SessionEndRequest' will result in Alexa replying back with an error that appears in your CloudWatch Logs.
It would be great to continue the discussion on the Alexa Developer Forum .
from skill-sample-nodejs-fact.
Hey @TDA @PaulCutsinger @deegles - I encountered this issue when trying something with the alexa skill sample at a hackathon, couldn't find a way out once I'd got into the error - are there any updates on this?
from skill-sample-nodejs-fact.
@DickensA tbh, I never got a response to this, I just re-submitted a bunch of times and gave up. There is an article on the forums for this, apparently this need not be supported: https://forums.developer.amazon.com/forums/thread.jspa?threadID=8941&tstart=0
But the reviewers dont seem to know that. :\
from skill-sample-nodejs-fact.
Your app might need to respond to an Unhandled
option as a possibility for Intents.
Unhandled() {
this.emit(':ask',
`I\'m sorry, but I\'m not sure what you asked me.`
},
I found this out when I misspelled an intent and the app didn't know how to process the request. Kind of acts like a default
option inside a switch statement.
from skill-sample-nodejs-fact.
I found the error in my code, I was missing:-
the "Unhandled" function at first then i was missing
module.exports = handlers;
in the intentHandlers.js
from skill-sample-nodejs-fact.
Exit is a command baked into Alexa.
If you receive this error when saying 'exit'
No 'Unhandled' function defined for event: Unhandled
You can add this intent to your handler to capture exit and clean up any sessions:
'SessionEndedRequest': function () {
console.log('session ended!');
}
from skill-sample-nodejs-fact.
@JennJin I see that you have closed a bunch of issues today, is there an official way to handle this? I would like to see a response from the core team on what the right way to solve this is, before closing it out.
from skill-sample-nodejs-fact.
@JennJin Thanks for the detailed explanation :) That is pretty much what I expected, it appears that the certification team isn't caught up with that yet. I will continue the discussion on the forums. Thank you!
from skill-sample-nodejs-fact.
Hey Guys that's a very genuine question. I figured out if you add "SessionEndedRequest" intent before your "LaunchRequest" intent(You can put it anywhere though) and inside it just have "this.emit(':responseReady')" and nothing else. Works fine.
from skill-sample-nodejs-fact.
Related Issues (20)
- How do I port Amazon examples
- Intent call not working, Alexa close session after LaunchRequest. HOT 4
- Missing steps for "space fact" tutorial HOT 1
- Sample code in tutorial and Lambda code from template are not same HOT 5
- I would like to modify the skill to have facts for an specific planet. HOT 3
- Link broken HOT 1
- Voice model and sample code not working for Hindi HOT 3
- 'Key' are coming in response
- Need to read firebase(firestore data) HOT 1
- Runtime HOT 1
- Proposal: add external API usage with async/await to example HOT 1
- what is .t() in this line of code randomFact = requestAttributes.t('FACTS');? HOT 1
- Broken links in the docs HOT 2
- AMAZON.RepeatIntent HOT 2
- Template specifies deprecated Runtime 10.x HOT 4
- doesn't create a skill HOT 3
- de-DE Model incorrect HOT 4
- Termux HOT 2
- several
- Broken link : 404 on optional link for securing lambda function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skill-sample-nodejs-fact.