Hello. I am still learning and currently I am working on using the SDK2 instead of version 1. The problem I have is that even when I use the default samples, skills do not behave the way they should or at least how I am used to and expect them to work (ons SDK1).
At the moment I am not using the CLI, but instead serverless applications repositories for the SDK2 (precisely the NodeJS fact skill repository) as a basis to work with.
Even the simplest skill with only one Intent (besides the standard intents) gives me headaches.
exports.handler = skillBuilder .addRequestHandlers( LaunchRequestHandler, HelloIntentHandler, NextHandler, HelpHandler, ExitHandler, SessionEndedRequestHandler ) .addErrorHandlers(ErrorHandler) .lambda();
So these are all the Handlers I use. The skill uses exactly the default code (nothing added by me), but for some strange reason the LaunchRequest is sometimes skipped. This is what happens: The user opens the skill and the LaunchRequest is placed. The user could interact with the skill or stop it. When he reopens the skill immediately the LaunchRequest is now skipped and the HelloIntentHandler is used. In the simulator I could just go back to the build tab and return to the test tab - then the skill will open with the LaunchRequest again.
On an Echo device this doesn't work obviously - here only waiting a couple of minutes somehow resets the skill.
Is this a know issue?
Is this because I am not using the CLI, but instead the serverless application repository? I could code a skill from scratch and the same problems occur although it works fine. Only on SDK1 the skill will always open with the LaunchRequest.
Thanks for reading so far. I know this might just be a basic problem, but I am still learning and I enjoy every tip you might have.