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 Respuesta
0
Respuesta aceptada

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
EXPERTO
respondido hace un año
profile picture
EXPERTO
revisado hace 23 días
  • 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?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas