vscode builder id fails to connect

1

I setup a dev environment in codecatalyst yesterday and it would trigger vscode when I connected.

Today, tried to use it again, but when vscode is launched it fails to connect and checking the AWS Toolkit logs, I see

2023-01-12 17:33:44 [ERROR]: log level: info
2023-01-12 17:33:45 [INFO]: Retrieving AWS endpoint data
2023-01-12 17:33:45 [INFO]: OS: Darwin x64 22.1.0
2023-01-12 17:33:45 [INFO]: Visual Studio Code extension host:  1.74.3
2023-01-12 17:33:45 [INFO]: AWS Toolkit:  1.60.0
2023-01-12 17:33:45 [INFO]: node: 16.14.2
2023-01-12 17:33:45 [INFO]: electron: 19.1.8
2023-01-12 17:33:45 [WARN]: AwsContext: no default region in credentials profile, falling back to us-east-1: 
2023-01-12 17:33:45 [WARN]: CloudFormationTemplateRegistry: addWatchPattern(**/*.{yaml,yml}): no workspace
2023-01-12 17:33:45 [WARN]: CodelensRootRegistry: addWatchPattern(**/requirements.txt): no workspace
2023-01-12 17:33:45 [WARN]: CodelensRootRegistry: addWatchPattern(**/package.json): no workspace
2023-01-12 17:33:45 [WARN]: CodelensRootRegistry: addWatchPattern(**/*.csproj): no workspace
2023-01-12 17:33:45 [WARN]: CodelensRootRegistry: addWatchPattern(**/go.mod): no workspace
2023-01-12 17:33:45 [WARN]: CodelensRootRegistry: addWatchPattern(**/build.gradle): no workspace
2023-01-12 17:33:45 [WARN]: CodelensRootRegistry: addWatchPattern(**/pom.xml): no workspace
2023-01-12 17:33:52 [WARN]: auth (codecatalyst): removing saved connection "codecatalyst.savedConnectionId" as it no longer exists
2023-01-12 17:33:52 [ERROR]: aws.codecatalyst.openDevEnv: Error: Connection is invalid or expired. Try logging in again. [InvalidConnection]
2023-01-12 17:36:21 [ERROR]: aws.codecatalyst.openDevEnv: Error: Connection is invalid or expired. Try logging in again. [InvalidConnection]
2023-01-12 17:38:46 [INFO]: telemetry: sent batch (size=20)
2023-01-12 17:38:46 [INFO]: telemetry: sent batch (size=14)
2023-01-12 17:41:23 [ERROR]: aws.codecatalyst.createDevEnv: Error: Connection is invalid or expired. Try logging in again. [InvalidConnection]
2023-01-12 17:43:46 [INFO]: telemetry: sent batch (size=13)

I've tried

  • uninstalling and re-installing the AWS Toolkit extension,
  • creating a new dev environment in codecatalyst
  • clicking on the builder ID icon in AWS Toolkit extension
  • Logging out and back in to codecatalyst.aws with builder id

and none of them worked. Any suggestions?

profile picture
gefragt vor einem Jahr1751 Aufrufe
2 Antworten
1
Akzeptierte Antwort

Hi there, Based on the error message, it looks like your session was expired. Could you please try logging into CodeCatalyst from the Toolkit ? Please feel free to reach out if the error still occurs.

AWS
EXPERTE
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor 25 Tagen
1

For anyone who couldn't find how to do this -

  1. Click on the AWS extension icon in the left hand tab of VSCode - Enter image description here

  2. Choose CodeCatalyst > Start from the developer tools extension Enter image description here

  3. Follow any prompts from VSCode about allowing Code to open an external website

  4. In your browser, allow aws-toolkit to access your data

  5. In VSCode, you should now have an option Open Dev Environment - click this Enter image description here

  6. After a short delay, you should get a list of the available dev environments for your Builder ID - choose the appropriate environment.

profile picture
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen