Long story short...
I started a simple skill from Facts blueprint "space facts"
Created a const ->
const WELCOME_MESSAGE = "Welcome! You want a space fact?";
And separated LaunchRequest from IntentRequest (so, user can say "open space facts" or say "open space facts and say a fact")
'LaunchRequest': function () { this.emit(':ask', WELCOME_MESSAGE); } 'IntentRequest': function () { this.emit('GetNewFactIntent'); }
*Now if I start the skill only by saying "start space skills"... I receive the welcome message and "shouldEndSession": false as expected,
BUT if I say "exit" at this moment, I'll receive:
"There was a problem with the requested skill's response"
My JSON INPUT shows the expected "SessionEndedRequest"
"request": {
"type": "SessionEndedRequest",
"requestId": "amzn1.echo-api.request.c6ea8178-3cdb-4119-ae73-e8ea86ebba6d",
"timestamp": "2018-09-25T01:14:05Z",
"locale": "en-US",
"reason": "USER_INITIATED"
}
But I get a "null" JSON OUTPUT..
-I've done some research and found this https://github.com/alexa/skill-sample-nodejs-fact/issues/3
-I also tried an "Unhandled" like this... but still no luck
'Unhandled': function () {
this.emit('AMAZON.StopIntent'); },
Because of this, my skill got rejected today, so I would like to fix it and upload it again.
this.emit(':ask', speechOutput, repromptSpeech);
– R. Vait