Unknow Error when setting up CodeWhisperer with VS Code.

0

The following is my AWS Toolkit Logs:

2023-04-30 16:46:50 [ERROR]: API response (oidc.ap-northeast-1.amazonaws.com /token): {
  name: 'InvalidGrantException',
  '$fault': 'client',
  '$metadata': {
    httpStatusCode: 400,
    requestId: 'dbbba2ef-e5f1-4b20-9d92-d7869b57e732',
    extendedRequestId: undefined,
    cfId: undefined
  },
  error: 'invalid_grant',
  error_description: 'Invalid grant provided',
  message: 'UnknownError'
}
2023-04-30 16:46:50 [ERROR]: aws.codeWhisperer.sso: Error: Failed to connect to IAM Identity Center [FailedToConnect]
	 -> InvalidGrantException: UnknownError

After entering my AWS access portal URL, got a pop-up, choose Copy Code and Proceed, I did get a message said AWS Toolkit for VSCode can now access your data.. However, VS Code still failed to connect to IAM Identity Center, and gave me the Error log above. What else I could do to fix the error?

Also, I have done the SSO token provider configuration at ~/.aws/config by casting aws configure sso. How about ~/.aws/credentials? should I leave it empty? currently it's my old IAM user ACCESS KEY ID & SECRET ACCESS KEY.

Thanks!

1개 답변
0
수락된 답변

If there is an error in the settings made with the aws configure sso command, the error message "Invalid grant provided" will appear.
Please make sure that the start URL and the region where SSO is located are specified correctly.

Please check here for a similar problem.
https://github.com/aws/aws-toolkit-vscode/issues/3064

profile picture
전문가
답변함 일 년 전
profile picture
전문가
검토됨 23일 전
  • I have absolutely no idea what a SSO is... the sign up process was so arduous I was ready to throw in the towel, but then I got an email urging me to try AWS. Three more verification steps later, the last of which failed with:

    invalid_grant

    Invalid grant provided

    Agreeing to the permissions is not enough agreement; I actually have to troubleshoot a 4th or 5th level of authentication?

    Does anyone ever actually get to login and use the services?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠