Error while integrate AmazonQ in vs code
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...
That looks like a network problem. Are you behind a proxy?
@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
Can you provide the Amazon Q logs?
- In the vscode command palette, run
Amazon Q: View Logs. This reveals the Output panel withAmazon Q Logsselected. - Click the gear icon and choose
Debug, then click it again and chooseSet As Default. - Restart VSCode.
- Perform the steps to reproduce the issue.
- Remove any private info from the logs.
能否提供亚马逊Q日志?
- 在 vscode命令面板中运行
Amazon Q: View Logs。这将显示“输出”面板并Amazon Q Logs选中。- 点击齿轮图标并选择
Debug,然后再次点击并选择Set As Default。- 重启VSCode。
- 按照以下步骤重现问题。
- 从日志中删除所有私人信息。
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