Getting "SAM CLI has an invalid version" error when trying to debug python hello world lambda in Visual Studio Code #6415
Labels
stage/needs-triage
Automatically applied to new issues and PRs, indicating they haven't been looked at.
Description:
I'm getting a "SamLaunchRequestError: SAM CLI has an invalid version [InvalidSamCliVersion]" when trying to launch an aws-sam/direct-invoke debug configuration in Visual Studio Code.
Steps to reproduce:
Install Visual Studio Code
Install the latest version of the AWS Toolkit
Install the latest version of the SAM CLI (I installed version 1,.86.1 using the brew utility).
Create the following debug configuration in the .vscode/launch.json file (adapt as required):
Observed result:
aws_toolkit log has the following error
2023-12-07 15:53:36 [ERROR]: SamLaunchRequestError: SAM CLI has an invalid version [InvalidSamCliVersion]
Also get the notification
SAM CLI 1.85-1.86 has known issues on Windows. Update SAM CLI.
But, cannot find SAM version 1.104.0 installed
Expected result:
The debug session should be launched successfully within Visual Studio Code
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
OS - Windows 11
Docker version 24.0.7, build afdd53b
SAM CLI, version 1.104.0
Region - eu-west-1
Related issue
The text was updated successfully, but these errors were encountered: