aws/aws-toolkit-vscode

"Error: Webview error" when Authentication for AmazonQ

davidtranjs opened this issue · 0 comments

Problem

I can't authenticate for AmazonQ extension on VSCode even login in browser success

Steps to reproduce the issue

  1. Go to Amazon Q
  2. Click "Re-Authenticate" button
  3. Process login success on browser
    image
  4. Back to VSCode and saw error
    image
  5. Click "View logs" and have this log
024-10-31 10:06:44.049 [info] auth: Handling validation error of connection: [some_id]
2024-10-31 10:06:44.049 [info] auth: Updating connection state of [some_id]
2024-10-31 10:06:44.095 [error] ssoSetup encountered an error: Error: Unable to authenticate connection
	 -> AccessDeniedException: Access denied
2024-10-31 10:06:44.095 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
	 -> Error: Webview backend command failed: "reauthenticateAmazonQ()"
	 -> Error: Unable to authenticate connection
	 -> AccessDeniedException: Access denied

Expected behavior

Authenticate success

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

OS: Darwin arm64 23.6.0
Visual Studio Code extension host: 1.95.0
Amazon Q: 1.32.0
node: 20.18.0
electron: 32.2.1