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

Unnable to login [CERT_HAS_EXPIRED] #3882

Closed B0rrA closed 10 months ago

B0rrA commented 11 months ago

Problem

I'm not able to connect with my aws builder id

Steps to reproduce the issue

  1. Install AWS-Toolkit-vscode extentions
  2. Click on button to start connection
  3. See error

Expected behavior

show builder id conection code to copy

System details (run the AWS: About Toolkit command)

Log:

2023-10-09 17:10:37 [INFO]: log level: info
2023-10-09 17:10:37 [INFO]: endpoints: retrieving AWS endpoints data
2023-10-09 17:10:37 [INFO]: OS: Linux x64 6.2.0-34-generic
2023-10-09 17:10:37 [INFO]: Visual Studio Code extension host:  1.83.0
2023-10-09 17:10:37 [INFO]: AWS Toolkit:  1.93.0
2023-10-09 17:10:37 [INFO]: node: 18.15.0
2023-10-09 17:10:37 [INFO]: electron: 25.8.4
2023-10-09 17:10:37 [INFO]: telemetry cache not found: '/home/ubuntu/.config/Code/User/globalStorage/amazonwebservices.aws-toolkit-vscode/telemetryCache'
2023-10-09 17:10:37 [WARN]: schemas: Using cached schema, failed to fetch latest "aws://cloudformation.schema.json": RequestError: certificate has expired [CERT_HAS_EXPIRED]
2023-10-09 17:10:37 [ERROR]: API response (oidc.us-east-1.amazonaws.com /token): { code: 'CERT_HAS_EXPIRED' }
2023-10-09 17:10:38 [WARN]: schemas: Using cached schema, failed to fetch latest "aws://sam.schema.json": RequestError: certificate has expired [CERT_HAS_EXPIRED]
2023-10-09 17:10:40 [ERROR]: API response (oidc.us-east-1.amazonaws.com /device_authorization): { code: 'CERT_HAS_EXPIRED' }
2023-10-09 17:10:42 [WARN]: endpoints: failed to load from remote source, region data may appear outdated: Error: Failed to get resource
2023-10-09 17:10:44 [ERROR]: API response (oidc.us-east-1.amazonaws.com /device_authorization): { code: 'CERT_HAS_EXPIRED' }
2023-10-09 17:10:44 [ERROR]: aws.codeWhisperer.reconnect: Error: Unable to authenticate connection
     -> Error: certificate has expired [CERT_HAS_EXPIRED]
justinmk3 commented 11 months ago
... failed to fetch latest "aws://cloudformation.schema.json": RequestError: certificate has expired [CERT_HAS_EXPIRED]
... API response (oidc.us-east-1.amazonaws.com /device_authorization): { code: 'CERT_HAS_EXPIRED' }

The first URL is a github url, the second is an Amazon url.

Unlikely that both have an expired certificate. Are you behind a proxy? https://github.com/aws/aws-toolkit-vscode/issues/185 https://github.com/aws/aws-toolkit-vscode/issues/899