question

dr john b allwork avatar image
dr john b allwork asked

ask new fails requesting Authentication for https://git-codecommit

ask new (or ask clone a skill) fails. Error message:

Skill creation failed. Reason: Failed to create a hosted skill. Reason: Git folder setup failed for c:\Users\john\Documents\Alexa\BUG\askskilltwo. Reason: Failed to execute git { "exitCode": 128, "gitErrorCode": "AuthenticationFailed", "gitCommand": "fetch", "stdout": "", "stderr": "warning: invalid credential line: Failed to fetch a LWA access token.

fatal: Authentication failed for 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/a112641b-01c5-4bd2-813c-427fa54c70b2/'n" }

(it does create the skill - I can see it in the developer console)

This is similar to

https://amazon.developer.forums.answerhub.com/questions/234126/alexa-skill-kit-git-credentials.html


I've tried:

I've reinstalled the ASK extension as suggested above, as well as:

1. Creating new ASK profile and linking with my developer account.

2. I can create a repo and clone it:

git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/DemoRepo

3. I've followed: https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-ch.html

git config --global credential.helper "!aws codecommit credential-helper $@" etc...

4. I've tried: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html

and reinstalled Git for Windows without the option for the Git Credential Manager utility, because it is not compatible with CodeCommit.

and as suggested:

"removed any stored credentials from the Credential Manager utility (you can find this utility in Control Panel). After you have removed any stored credentials, add the following to your .gitconfig file, save it, and then try connecting again from a new command prompt window"

I've created a new AWS user with codecommit permissions too

I can git clone https://<one of my repos> without error, or asking for authentication

node version: v12.16.1 installed

ask cli --version : 2.28.0

Can anyone help? TIA

ask cliask sdk
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.

dr john b allwork avatar image dr john b allwork commented ·

Ok - you can ignore this.

I think the problem was that I wasn't signed into AWS from VS code and AWS toolbox

I've created a new profile and added access key and secret key to credential file

and signed into AWS

and it works

I now have ASK Profile:defaut AWS:profile:test2 along the bottom of my VS code screen and it now creates a skill


see:

Setting Up the AWS Toolkit for Visual Studio Code

https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setting-up.html

Establishing credentials for the AWS Toolkit for Visual Studio Code

https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/establish-credentials.html

https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/aws-credentials.html

https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setup-credentials.html


0 Likes 0 ·
dr john b allwork avatar image dr john b allwork dr john b allwork commented ·

That wasn't the solution. I still have the problem

0 Likes 0 ·

0 Answers