-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: sam local invoke - ValueError #6558
Comments
Thanks for opening this issue, can you paste the template you are using here in code blocks?
|
Hi @NamsyJay, it seems the runtime might be set as |
Hello, I am facing the similar issue with below error log, Can you please suggest the solution? weather-data-capture sam local invoke Error: Unsupported Lambda runtime java18 An unexpected error was encountered while executing "sam local invoke". |
Template.yaml file content: See https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.htmlfor more info to see how to tune the lambda function configs based on your use case.AppFunction: |
Hi @vamsikrishna507, the You can try changing the runtime to one of:
|
Thank you Lucashuy for the details. I have used java17 and the issue fixed but led to another exception. It seems that valid certificate is not available when i invoke sam local invoke althrough java17 has it's certificate in lib folder. Can you please suggest the way to get rid of the exception and proceed? I/O error on GET request for "https://api-metoffice.apiconnect.ibmcloud.com/v0/forecasts/point/hourly": PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target: org.springframework.web.client.ResourceAccessException |
Thanks for creating a new issue for the connection issue (ref: #6706). The team will continue to engage there. The original UX issue here is fixed and will be released in a future SAM CLI update. |
Patch is released in v1.110.0. Closing |
Hi @lucashuy I started getting the same issue while i my sam --version
My template is
|
Hi @Khnaz35, this does not appear to be the same issue. It looks like something failed to call the AWS endpoint to assume roles, have you tried running the command again in a different environment? There may have been a momentary outage somewhere between your connection and AWS, or a network configuration issue on your machine. Additionally, you can try installing SAM CLI from our official artifacts: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html If you are still facing issues, please create a new issue on our Github. |
Description:
An unexpected error was encountered while executing "sam local invoke".
Steps to reproduce:
Observed result:
Error Message:-
Invoking lambda_function.lambda_handler (python 3.9)
Error: Unsupported Lambda runtime python 3.9
Traceback:
File "click/core.py", line 1078, in main
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "samcli/cli/cli_config_file.py", line 347, in wrapper
File "click/decorators.py", line 92, in new_func
File "click/core.py", line 783, in invoke
File "samcli/lib/telemetry/metric.py", line 184, in wrapped
File "samcli/lib/telemetry/metric.py", line 149, in wrapped
File "samcli/lib/utils/version_checker.py", line 42, in wrapped
File "samcli/cli/main.py", line 95, in wrapper
File "samcli/commands/local/invoke/cli.py", line 103, in cli
File "samcli/commands/local/invoke/cli.py", line 201, in do_cli
File "samcli/commands/local/lib/local_lambda.py", line 144, in invoke
File "samcli/lib/telemetry/metric.py", line 324, in wrapped_func
File "samcli/local/lambdafn/runtime.py", line 192, in invoke
File "samcli/local/lambdafn/runtime.py", line 88, in create
File "samcli/local/docker/lambda_container.py", line 94, in init
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
SAM CLI, version 1.107.0
Python 3.9
WSL Ubuntu
VS Code
The text was updated successfully, but these errors were encountered: