Skip to content

Problem connecting to AWS CloudFormation language server since latest toolkit update #8458

@Andre-Manfacter

Description

@Andre-Manfacter

Problem

Since the latest update to the AWS toolkit extension my Cursor IDE cannot connect to the AWS CloudFormation language server, even though AWS credentials seem valid and haven't changed since the issue started.
Cursor terminal output:

[Info  - 9:22:06 PM] AWS CloudFormation launched from [PATH]\AppData\Local\aws\toolkits\language-servers\cloudformation-languageserver\1.2.0\cloudformation-languageserver-1.2.0-win32-x64-node22
[Info  - 9:22:06 PM] AWS CloudFormation is now listening...
[Error - 9:22:06 PM] Server initialization failed.
  Message: Request initialize failed with message: Unsupported state or unable to authenticate data
  Code: -32603 
[Error - 9:22:06 PM] AWS CloudFormation client: couldn't create connection to server.
  Message: Request initialize failed with message: Unsupported state or unable to authenticate data
  Code: -32603 
[09:22:06 PM] INFO: [Init] AWS CloudFormation initializing...
    ClientInfo: {
      "name": "Cursor",
      "version": "1.105.1"
    }
    NodeEnv: "production"
    AwsEnv: "prod"
    aws: {
      "clientInfo": {
        "extension": {
          "name": "amazonwebservices.cloudformation",
          "version": "1.0.0"
        },
        "clientId": "11111111-1111-1111-1111-111111111111"
      },
      "telemetryEnabled": false
    }
[09:22:06 PM] INFO: [Init] 
    Machine: "Windows_NT-win32-x64-x86_64-10.0.26100"
    Process: "win32-x64"
    Runtime: "node=22.20.0 v8=13.8.258.32-electron.0 uv=1.51.0 modules=136"
[09:22:06 PM] INFO: [TelemetryService] Telemetry disabled
[09:22:06 PM] INFO: [FileStore.Global] Initialized FileDB v2 and 0.0000 MB
[09:22:06 PM] INFO: [AwsCredentials] AWS credentials encrypted
[Error - 9:22:09 PM] Server process exited with code 1.
[Error - 9:22:09 PM] Connection to server got closed. Server will not be restarted.

Steps to reproduce the issue

Issue started happening since latest Cursor and AWS Toolkit extension updates 2 days ago upon IDE restart after the updates. No manual changes to AWS toolkit extension or AWS credentials were made during this period.
No special action is needed, error occurs on startup and the the following error messages pop-up automatically.
Complete terminal output is as above stated.

Image

Expected behavior

No auth/connection errors should be thrown on startup of the toolkit

System details (run AWS: About and/or Amazon Q: About)

  • OS: Windows_NT x64 10.0.26100
  • Visual Studio Code version: N/A
  • Visual Studio Code extension host: 1.105.1
  • Cursor version: 1.105.1
  • AWS Toolkit: 3.90.0
  • node: 22.20.0
  • electron: 37.7.0
  • Amazon Q version: N/A
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWe can reproduce the issue and confirmed it is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions