aws-toolkit-vscode
aws-toolkit-vscode copied to clipboard
Amazon Q Unable to Log In
Problem
I am unable to use Amazon Q: when I try to login (either with free or pro license) I get the following output in the Amazon Q logs:
2025-05-21 16:21:18.289 [info] auth: Updating connection state of e4a77758-823f-40f3-aacc-db72c5f913c1 to authenticating
2025-05-21 16:21:18.289 [info] codewhisperer: connection changed to authenticating: e4a77758-823f-40f3-aacc-db72c5f913c1
2025-05-21 16:21:18.322 [info] current client registration id=undefined
expires at undefined
key = e4a77758-823f-40f3-aacc-db72c5f913c1
2025-05-21 16:21:20.265 [error] ssoSetup encountered an error: Error: Failed to connect to IAM Identity Center [FailedToConnect]
-> Error: [UriError]: Scheme contains illegal characters.
2025-05-21 16:21:20.265 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
-> Error: Webview backend command failed: "startCodeWhispererEnterpriseSetup()"
-> Error: Failed to connect to IAM Identity Center [FailedToConnect]
-> Error: [UriError]: Scheme contains illegal characters.
Steps to reproduce the issue
- Uninstall Amazon Q
- Install Amazon Q using Viceroy
- Select sign-in option
- See error (and failure to sign in)
Expected behavior
I am able to login and continue using Amazon Q extension.
System details (run AWS: About and/or Amazon Q: About)
OS: Linux x64 5.10.236-208.928.amzn2int.x86_64
Visual Studio Code extension host: 1.100.2
Amazon Q: 1.68.0
node: 20.19.0
Facing the same issue
+1
Logs
025-06-11 20:52:34.512 [info] selected AWS ID sign in
2025-06-11 20:52:34.512 [info] auth: Updating connection state of *****MASKED***** to authenticating
2025-06-11 20:52:34.512 [info] codewhisperer: connection changed to authenticating: *****MASKED*****
2025-06-11 20:52:34.513 [info] current client registration id=undefined
expires at undefined
key = *****MASKED*****
2025-06-11 20:52:34.527 [error] ssoSetup encountered an error: Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> Error: [UriError]: Scheme contains illegal characters.
2025-06-11 20:52:34.527 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
-> Error: Webview backend command failed: "startCodeWhispererBuilderIdSetup()"
-> Error: Failed to connect to AWS Builder ID [FailedToConnect]
-> Error: [UriError]: Scheme contains illegal characters.
Version info
- Extension version
v1.71.0
I create a brand new Amazon Q Developer account and get a "Start URL".
I try to log in as "Company account" with this "Start URL" and also get the following error.
2025-06-12 21:05:19.187 [info] auth: Updating connection state of *****MASKED***** to authenticating
2025-06-12 21:05:19.187 [info] codewhisperer: connection changed to authenticating: *****MASKED*****
2025-06-12 21:05:19.188 [info] current client registration id=undefined
expires at undefined
key = *****MASKED*****
2025-06-12 21:05:19.203 [error] ssoSetup encountered an error: Error: Failed to connect to IAM Identity Center [FailedToConnect]
-> Error: [UriError]: Scheme contains illegal characters.
2025-06-12 21:05:19.203 [error] webviewId="aws.amazonq.AmazonCommonAuth": Error: Webview error
-> Error: Webview backend command failed: "startCodeWhispererEnterpriseSetup()"
-> Error: Failed to connect to IAM Identity Center [FailedToConnect]
-> Error: [UriError]: Scheme contains illegal characters.
+1
+1 but on PHPStorm
+1