Bug: Windows x64 quick start web template error
See original GitHub issueDescription:
Follwing the documentation here I ran sam init
and it threw the error:
Error: Can't find application template quick-start-web - check valid values in interactive init.
Steps to reproduce:
sam init
SAM CLI now collects telemetry to better understand customer needs.
You can OPT OUT and disable telemetry collection by setting the
environment variable SAM_CLI_TELEMETRY=0 in your shell.
Thanks for your help!
Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html
You can preselect a particular runtime or package type when using the `sam init` experience.
Call `sam init --help` to learn more.
Which template source would you like to use?
1 - AWS Quick Start Templates
2 - Custom Template Location
Choice: 1
Choose an AWS Quick Start application template
1 - Hello World Example
2 - Multi-step workflow
3 - Serverless API
4 - Scheduled task
5 - Standalone function
6 - Data processing
7 - Infrastructure event management
8 - Machine Learning
Template: 3
Which runtime would you like to use?
1 - dotnet6
2 - dotnetcore3.1
3 - nodejs16.x
4 - nodejs14.x
5 - nodejs12.x
6 - python3.9
7 - python3.8
Runtime: 4
Based on your selections, the only Package type available is Zip.
We will proceed to selecting the Package type as Zip.
Based on your selections, the only dependency manager available is npm.
We will proceed copying the template using npm.
Would you like to enable X-Ray tracing on the function(s) in your application? [y/N]: y
X-Ray will incur an additional cost. View https://aws.amazon.com/xray/pricing/ for more details
Project name [sam-app]:
Cloning from https://github.com/aws/aws-sam-cli-app-templates (process may take a moment)
2022-05-31 17:59:58,957 |
Cloning from https://github.com/aws/aws-sam-cli-app-templates (process may take a moment)
2022-05-31 18:00:02,025 | Clone error, attempting to use an old clone from a previous run
2022-05-31 18:00:02,025 | Template is not provided in context, skip adding project type metric
2022-05-31 18:00:02,026 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '2a94d214-eb7b-410d-914e-f5582e523006', 'installationId': '53585486-101e-4a05-a49c-15c276a9dd16', 'sessionId': '98473969-3ad9-4888-8338-80c4d8a8c2d4', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.8', 'samcliVersion': '1.51.0', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam init', 'duration': 19671, 'exitReason': 'InvalidInitTemplateError', 'exitCode': 1}}]}
2022-05-31 18:00:02,179 | Telemetry response: 200
Error: Can't find application template quick-start-web - check valid values in interactive init.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: Windows x64
- If using SAM CLI,
sam --version
: 1.51.0 - AWS region:
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Unexplained Windows or software behavior may be caused ...
This issue may occur when deceptive software, such as spyware that is known as "grayware," is installed on your computer. This kind of...
Read more >Error: Unable to Start Debugging on the Web Server
This error may occur when debugging locally with a 32-bit version of Visual Studio, which use the 64-bit version of the remote debugger...
Read more >NET Framework 3.5 Service Pack 1 - Microsoft Support
If the application is running as a 64-bit process, an exception is thrown, and you receive an error message that resembles the following:...
Read more >Navigation is canceled when you browse to Web pages that ...
Describes a problem in which Internet Explorer may stop responding when you browse to Web pages that in different Internet Explorer security zones....
Read more >How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I believe that this is fixed in the new 1.53.0 release. Please have a try and if you still have any questions or issues feel free to re-open the issue!
Hey @CoreyCole, the error was due to the limitation of 260 chars in a path in Windows. We will push a fix to enable this behaviour for the app templates repo.
Meanwhile, to workaround it, you can run this command before running
sam init
:Note that this affects your global git settings, and it might have other drawback. So you might want to unset it after running
sam init
: