question

VoiceSkills@WiSilica avatar image
VoiceSkills@WiSilica asked

Alexa Node js Migration

Hi i am using AWS lambda for hosting alexa skills. Currently we have 3 skills published and the node js version we are using is 4. Recently we received a mail which says node js 6 support will be taken off will this affect our current live skills because we now use node 4 should we migrate node 4 to node 8 ????

alexa skills kitalexa voice servicealexaalexa smart home
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Robert G Schaffrath avatar image
Robert G Schaffrath answered

You can migrate to Node.js 8.10 on Lambda but that will be deprecated at the end of the year as Node.js 8.x will officially go off Long Term Support by the Node.js organization at that time with only 10.x and 12.x being on LTS.

This past week AWS added support for Node.js 10.x (.x as they will be applying incremental updates to Node.js 10). I have already migrated several Skill functions to Node.js 10.x without any problems and gained some new Node.js 10.x functionality (for-await-of, https.get options). The only issue you would see is when you use the ask command line to deploy your function, you will get the warning message:


Warn]: Please make sure the runtime of following Lambda resource(s) in project .ask/config is "nodejs8.10" since you are using ask-sdk as dependency.

I was able to safely ignore it. I found the ask-cli module that displays that message and fixed my copy to eliminate the message for Node.js 8.10 and 10.x deployments.

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

SpitfireDev avatar image SpitfireDev commented ·

can you please explain how you ignored this error? It's keeping me from deploying my lambda code. thanks in advance

[Warn]: Please make sure the runtime of following Lambda resource(s) in project .ask/config is "nodejs8.10" since you are using ask-sdk as dependency.


1 Like 1 ·
VoiceSkills@WiSilica avatar image VoiceSkills@WiSilica commented ·

Hi i am trying to implement report state and change report for our existing live skills. in my lambda code i am getting the acceptGrant directive and also the code to get the LWA access oken. But when i call LWA service to get access token it's says { "error_description": "The authorization grant type is not supported by the authorization server", "error": "unsupported_grant_type" }

0 Likes 0 ·
VoiceSkills@WiSilica avatar image
VoiceSkills@WiSilica answered

Hi i am trying to implement report stte and change report for our existing live skills. in my lambda code i am getting the acceptGrant directive and also the code to get the LWA access oken. But when i call LWA service to get access token it's says { "error_description": "The authorization grant type is not supported by the authorization server", "error": "unsupported_grant_type" }

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.