Please help me authenticate to Amazon Q.
Trying to sign-in to Amazon Q using my Builder ID, vscode throws a "Failed to set up", and webview error. There is no browser launch (behaves the same for Chrome and Safari).
Logs show a connection refused error from localhost /client/register. Similar behavior when trying to authenticate CodeCatalyst with my Builder Id.
The same Builder Id works perfectly on a Windows 10 machine running the same version of VSCode, and same extension versions.
Already tried:
- Emptied all VSCode Cache related folders
- Removed ~/.aws/sso directory
- Deleted all active sessions from my Builder Id Security section
- Removed and reinstalled Q & Toolkit extensions
MacOS: Sonoma 14.5
VSCode: 1.91.1
Amazon Q Extension: 1.18.0 2024-07-29
2024-07-31 13:21:08.338 [info] Log level: info
2024-07-31 13:21:08.338 [info] Telemetry product: Amazon Q For VS Code
2024-07-31 13:21:08.343 [info] codewhisperer: active connection changed
2024-07-31 13:21:08.343 [info] codewhisperer: connection states
connection isValid=false,
connection isValidCodewhispererCoreConnection=false,
connection isExpired=false,
secondaryAuth isExpired=false,
connection isUndefined=true
2024-07-31 13:21:08.415 [info] Trying to register toolkit callback. Toolkit is installed,
toolkit activated = false
2024-07-31 13:21:08.431 [info] initialized 'submitFeedback' command with default feedback id: Amazon Q
2024-07-31 13:21:08.726 [info] Trying to register toolkit callback. Toolkit is installed,
toolkit activated = false
2024-07-31 13:21:08.726 [info] toolkitApi: Registering callbacks of toolkit api
2024-07-31 13:21:13.432 [info] LspController: LSP already installed
2024-07-31 13:21:27.242 [warning] AwsContext: no default region in credentials profile, falling back to us-east-1:
2024-07-31 13:21:33.168 [info] selected AWS ID sign in
2024-07-31 13:21:33.169 [info] auth: Updating connection state of 863ef7cf-30be-4bb0-a993-747044255235 to authenticating
2024-07-31 13:21:33.169 [info] codewhisperer: connection changed to authenticating: 863ef7cf-30be-4bb0-a993-747044255235
2024-07-31 13:21:33.170 [info] current client registration id=undefined
expires at undefined
key = 863ef7cf-30be-4bb0-a993-747044255235
2024-07-31 13:21:33.181 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:21:33.192 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:21:33.436 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:21:33.444 [error] ssoSetup encountered an error: Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> AggregateError: [ECONNREFUSED]
2024-07-31 13:21:33.444 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
-> Error: Webview backend command failed: "startCodeWhispererBuilderIdSetup()"
-> Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> AggregateError: [ECONNREFUSED]
2024-07-31 13:26:08.822 [info] telemetry: sent batch (size=9)
2024-07-31 13:36:09.088 [info] telemetry: sent batch (size=3)
2024-07-31 13:36:25.667 [info] selected AWS ID sign in
2024-07-31 13:36:25.667 [info] auth: Updating connection state of c9a07f63-3cf8-447f-bae7-0bd997f9d376 to authenticating
2024-07-31 13:36:25.668 [info] codewhisperer: connection changed to authenticating: c9a07f63-3cf8-447f-bae7-0bd997f9d376
2024-07-31 13:36:25.669 [info] current client registration id=undefined
expires at undefined
key = c9a07f63-3cf8-447f-bae7-0bd997f9d376
2024-07-31 13:36:25.711 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:36:25.840 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:36:26.216 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:36:26.220 [error] ssoSetup encountered an error: Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> AggregateError: [ECONNREFUSED]
2024-07-31 13:36:26.220 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
-> Error: Webview backend command failed: "startCodeWhispererBuilderIdSetup()"
-> Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> AggregateError: [ECONNREFUSED]
2024-07-31 13:41:09.330 [info] telemetry: sent batch (size=9)
2024-07-31 13:44:36.372 [info] selected AWS ID sign in
2024-07-31 13:44:36.372 [info] auth: Updating connection state of 09019b52-555b-4417-9949-4b33f2fe6d0c to authenticating
2024-07-31 13:44:36.372 [info] codewhisperer: connection changed to authenticating: 09019b52-555b-4417-9949-4b33f2fe6d0c
2024-07-31 13:44:36.373 [info] current client registration id=undefined
expires at undefined
key = 09019b52-555b-4417-9949-4b33f2fe6d0c
2024-07-31 13:44:36.379 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:44:36.512 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:44:36.542 [error] API response (localhost /client/register): {
code: 'ECONNREFUSED',
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
2024-07-31 13:44:36.546 [error] ssoSetup encountered an error: Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> AggregateError: [ECONNREFUSED]
2024-07-31 13:44:36.547 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
-> Error: Webview backend command failed: "startCodeWhispererBuilderIdSetup()"
-> Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> AggregateError: [ECONNREFUSED]
2024-07-31 13:46:09.550 [info] telemetry: sent batch (size=6)
2024-07-31 13:46:10.233 [debug] Log level: debug
Hi, and thanks for the quick response. No, I am not behind a proxy server. No VPN either. This a home network, full access.