aws-toolkit-vscode icon indicating copy to clipboard operation
aws-toolkit-vscode copied to clipboard

Error while integrate AmazonQ in vs code

Open priteshkulkarni1993 opened this issue 10 months ago • 5 comments

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

  • OS: Ubuntu 20.44
  • Visual Studio Code version: 1.98.0
  • AWS Toolkit version:
  • Amazon Q version: 1.49.0

Question

After login to the AWS IAM Identity Center getting the below error -

2025-03-06 10:45:27.229 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error -> Error: Webview backend command failed: "startCodeWhispererEnterpriseSetup()" -> Error: Failed to connect to IAM Identity Center [FailedToConnect] -> TimeoutError: [ETIMEDOUT] 2025-03-06 10:45:53.593 [error] Got Failed to get an Cognito identity for telemetry: TimeoutError: null while initializing telemetry publisher 2025-03-06 10:50:50.458 [error] notifications: Failed to fetch at endpoint: https://idetoolkits-hostedfiles.amazonaws.com/Notifications/VSCode/emergency/1.x.json, err: TypeError: Cannot read properties of undefined (reading 'headers') 2025-03-06 10:51:02.121 [error] Got Failed to get an Cognito identity for telemetry: TimeoutError: null while initializing telemetry publisher 2025-03-06 10:56:10.628 [error] Got Failed to get an Cognito identity for telemetry: TimeoutError: null while initializing telemetry publisher 2025-03-06 11:12:03.192 [info] LspController: LSP server CPU 0%, LSP server Memory 329.9375MB 2025-03-06 11:12:04.384 [info] Refreshing indexes...

priteshkulkarni1993 avatar Mar 06 '25 06:03 priteshkulkarni1993

That looks like a network problem. Are you behind a proxy?

justinmk3 avatar Mar 10 '25 20:03 justinmk3

@justinmk3 Thanks for your reply. My machine is not behind the proxy. What could be the issue?

I have uninstalled the VS code and install it again but still the same error

priteshkulkarni1993 avatar Mar 11 '25 06:03 priteshkulkarni1993

Can you provide the Amazon Q logs?

  1. In the vscode command palette, run Amazon Q: View Logs. This reveals the Output panel with Amazon Q Logs selected.
  2. Click the gear icon and choose Debug, then click it again and choose Set As Default.
  3. Restart VSCode.
  4. Perform the steps to reproduce the issue.
  5. Remove any private info from the logs.

justinmk3 avatar Mar 11 '25 18:03 justinmk3

能否提供亚马逊Q日志?

  1. 在 vscode命令面板中运行Amazon Q: View Logs。这将显示“输出”面板并Amazon Q Logs选中。
  2. 点击齿轮图标并选择Debug,然后再次点击并选择Set As Default
  3. 重启VSCode。
  4. 按照以下步骤重现问题。
  5. 从日志中删除所有私人信息。

2025-11-17 14:11:34.074 [error] API response (oidc.us-east-1.amazonaws.com /token): { name: 'AccessDeniedException', '$fault': 'client', '$metadata': { httpStatusCode: 400, requestId: 'xxxx', extendedRequestId: undefined, cfId: undefined }, error: 'access_denied', error_description: 'Access denied', reason: null, message: 'UnknownError' } 2025-11-17 14:11:34.080 [error] ssoSetup encountered an error: Error: Failed to connect to IAM Identity Center [FailedToConnect] -> AccessDeniedException: Access denied 2025-11-17 14:11:34.080 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error -> Error: Webview backend command failed: "startCodeWhispererEnterpriseSetup()" -> Error: Failed to connect to IAM Identity Center [FailedToConnect] -> AccessDeniedException: Access denied

gaona233 avatar Nov 17 '25 06:11 gaona233