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

Amazon Q Unable to Log In

Open jbinagia opened this issue 7 months ago • 7 comments

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

  1. Uninstall Amazon Q
  2. Install Amazon Q using Viceroy
  3. Select sign-in option
  4. 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

jbinagia avatar May 21 '25 16:05 jbinagia

Facing the same issue

ajay340 avatar May 30 '25 19:05 ajay340

+1

wickz80 avatar Jun 03 '25 16:06 wickz80

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.

Dragon1573 avatar Jun 11 '25 12:06 Dragon1573

+1

welintonhaas avatar Jun 22 '25 14:06 welintonhaas

+1 but on PHPStorm

JamShady avatar Jul 26 '25 14:07 JamShady

+1

gaona233 avatar Nov 17 '25 06:11 gaona233