question

moonbeam avatar image
moonbeam asked

ask init issues

Been struggling with this for the past couple of days. When I "ask init" and select the default profile, it pops open a browser for me to login into the developer console. Since it's asking for an email address, I use my root credentials. I then get a "successfully signed in" message in the browser, but this error message in my terminal:

I've been using aws cli for the past couple of months with an IAM user configured and ~/.aws/credentials is set up properly. I tried removing it, creating a fresh set of credentials, and setting it up again. Also tried deleting the .ask folder and re-initializing.

I'm running zsh on macOS, with node 4.3.2. I tried using node v6, but had the same issues, so I switched back. I'm able to create a new skill, but when I try to deploy it, I get the "cannot find vendor id associated with current profile" error, and an eternally spinning "Creating new skill...." message.

I've gone through all the related posts in the forum, and I also tried initializing ask-cli without using the browser, with the authentication code, which doesn't work either.

Any other ideas? Thanks!

alexa skills kitask cli
10 |5000

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

moonbeam avatar image
moonbeam answered

Ok, I tried that, but was still getting the same errors. I then realized that the Buffer.from error meant it was looking for node v6. So I uninstalled ask-cli, switched node versions, re-installed, and everything worked great. The ASK docs say Node.js version 4.3 or greater, but it looks like it needs to be 4.5 and up.

10 |5000

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

Jenn@amazon avatar image
Jenn@amazon answered

The Vendor ID is related to the Dev Portal Account where the Skills are deployed. It's different than the AWS User used for deploying to Lambda.

Try creating a new profile and then running the command:

ask deploy --profile <profile name>
1 comment
10 |5000

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

I was getting same error. This literally solved the issue. Thanks.

0 Likes 0 ·
Eric@Amazon avatar image
Eric@Amazon answered

To add on to Jenn's answer, I would also suggest upgrading your node to version 4.5. I've seen that help get past an error like the one you are seeing.

10 |5000

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