aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.52k stars 443 forks source link

Unable to login to Amazon Q- ssoSetup encountered an error #6057

Open raukstartech opened 2 days ago

raukstartech commented 2 days ago

Problem

I can't login to Amazon Q although I have a license. It works for my colleagues. I have tried to uninstall and install, I tried before and after updating VS Code to the latest version, I have my computer updated as per my company recommendations. I have tried everything even remotely applicable in the troubleshooting documentation. I use the AWS Toolkit with no issues, sso works and I use the aws cli and work locally- no problem.

Steps to reproduce the issue

  1. Go to the extension in Visual Studio Code
  2. I see 'Connect with existing account' and choose 'use with pro license' (as I should per my organisations instructions, I have a license)
  3. Sign in with AWS IAM Identity Center: i pick my company landing page https://.awsapps.com/start, and eu-west-1 per my organisation's instructions
  4. I get a pop up in the browser: Allow AWS IDE Extensions for VSCode to access your data?
  5. I press allow and get Request approved AWS IDE Extensions for VS Code have been given requested permissions
  6. I go back to Visual studio code and have these logs:
  7. 2024-11-20 10:13:21.507 [info] auth: Updating connection state of <some_uuid> to authenticating
    2024-11-20 10:13:21.508 [info] codewhisperer: connection changed to authenticating: <some_uuid>
    2024-11-20 10:13:21.509 [info] current client registration id=undefined
    expires at undefined
    key = <some_uuid>
    2024-11-20 10:13:53.181 [info] telemetry: sent batch (size=2)
    2024-11-20 10:14:08.023 [error] Unable to find c:\Users\<my_user>\.vscode\extensions\amazonwebservices.amazon-q-vscode-1.36.0\dist\src\auth\sso\vue\favicon.ico
    2024-11-20 10:14:08.083 [error] API response ([ 'oidc.eu-west-1.amazonaws.com', '/token', [Object] ] { logID: 159 }): %O
    2024-11-20 10:14:08.089 [error] ssoSetup encountered an error: [ [v] ]
    2024-11-20 10:14:08.089 [error] webviewId="aws.amazonq.AmazonCommonAuth": [ [v] ]

Expected behavior

I expect to login successfully and start to use Amazon Q

System details (run AWS: About and/or Amazon Q: About)

jpinkney-aws commented 2 days ago

Does any more information pop up anywhere regarding these errors?:

2024-11-20 10:14:08.089 [error] ssoSetup encountered an error: [ [v] ]
2024-11-20 10:14:08.089 [error] webviewId="aws.amazonq.AmazonCommonAuth": [ [v] ]