-
Notifications
You must be signed in to change notification settings - Fork 737
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
ask-sdk-v1adapter: CreateStateHandler issues #438
Comments
Hi @eemmzz , I tested the To help us identify the problem, could you provide more context on the issue:
Regards |
Hi @eemmzz , One more question, how are you logging the handler created from the Regards |
This commit contains the follow changes: - Fix a bug where CreateStateHandler, when invoked multiple times will repetitively append state string fix #438
@tianrenz thank you, I can verify this fix seems to be working for us too. Cheers for the speedy turn around 👍 |
I'm submitting a...
Expected Behavior
Whilst using
ask-sdk-v1adapter
we would expect that settingthis.handler.state
would result in the correct handlers being called on a subsequent request.Current Behavior
On the first request to our skill: everything works as expected
On the second request to our skill: from what we can see no handlers are being called - not even the
Unhandled
intentWe see this error in our bespoken proxy logs:
Context
We use state handlers so that our skill has multiple layers.
Example snippet:
Notes:
alexa-sdk
but not withask-sdk-v1adapter
.NAVIGATION_START
works on Launch.NAVIGATION
before we send our response. Once the next request is received no handlers seem to be called. Not even our no state handlers or theNAVIGATION_START
handlers.Noticed that logging out the result of the
CreateStateHandler
inask-sdk-v1adapter
it seems to keep re-adding the state name on each request:I think this may be the bug.
Steps to Reproduce (for bugs)
See above.
Your Environment
Node.js and NPM Info
The text was updated successfully, but these errors were encountered: