aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.47k stars 408 forks source link

Failed to connect to AWS Builder ID (with `Http: Proxy Strict SSL` enabled) #3585

Closed luowenx closed 1 year ago

luowenx commented 1 year ago

System details (run the AWS: About Toolkit command)

Question

CodeWhisperer --> Start -- selected AWS Builder ID -- > not open

the logs: 2023-06-16 20:49:56 [INFO]: selected AWS ID sign in 2023-06-16 20:49:57 [ERROR]: API response (oidc.us-east-1.amazonaws.com /client/register): { code: 'ECONNRESET', path: undefined, host: undefined, port: undefined, localAddress: undefined, name: 'TimeoutError' } 2023-06-16 20:49:57 [ERROR]: API response (oidc.us-east-1.amazonaws.com /client/register): { code: 'ECONNRESET', path: undefined, host: undefined, port: undefined, localAddress: undefined, name: 'TimeoutError' } 2023-06-16 20:49:58 [ERROR]: API response (oidc.us-east-1.amazonaws.com /client/register): { code: 'ECONNRESET', path: undefined, host: undefined, port: undefined, localAddress: undefined, name: 'TimeoutError' } 2023-06-16 20:49:58 [ERROR]: aws.codeWhisperer.sso: Error: Failed to connect to AWS Builder ID [FailedToConnect] -> TimeoutError: Client network socket disconnected before secure TLS connection was established [ECONNRESET]

justinmk3 commented 1 year ago

AWS Toolkit makes requests using the AWS SDK which uses the nodejs network layer. If TLS or network fails, AWS Toolkit can't proceed.

Are you behind a proxy?

luowenx commented 1 year ago

After I added the proxy, it didn't work either

the logs: 2023-06-21 09:59:34 [INFO]: selected AWS ID sign in 2023-06-21 09:59:34 [ERROR]: API response (oidc.us-east-1.amazonaws.com /client/register): { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7890 } 2023-06-21 09:59:34 [ERROR]: API response (oidc.us-east-1.amazonaws.com /client/register): { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7890 } 2023-06-21 09:59:34 [ERROR]: API response (oidc.us-east-1.amazonaws.com /client/register): { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 7890 } 2023-06-21 09:59:34 [ERROR]: aws.codeWhisperer.sso: Error: Failed to connect to AWS Builder ID [FailedToConnect] -> Error: connect ECONNREFUSED 127.0.0.1:7890 [ECONNREFUSED]

luowenx commented 1 year ago

Thanks! uncheck Http: Proxy Strict SSL and it worked.

justinmk3 commented 1 year ago

Thanks for the followup! Closing in favor of these tracking issues: