-
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 - ConnectionError #6102
Comments
Hi there, I wasn't able to re-produce this issue on my machine but I was using an earlier version of Docker engine. After I've tried to update 24.0.6, I've got issues like the one above. But I was also not able to fully complete the update (it was still asking me to restart docker, which it couldn't restart itself). In the end I've removed docker installation and did a clean install and then I am now able to invoke my function. Can you try to re-install Docker on your machine as well to see if it is going to solve this problem? Thanks |
Thanks for pointing out about docker. As suggested, I removed docker and did a clean install but the error was still there. Even installed an early version (23.0) but the error was still there. I was using docker engine and ended installing docker desktop. After installing docker desktop, I got a message about enabling virtualization. After enabling it at BIOS, I was able to run docker desktop. After then I was able to execute the I was curious if docker desktop solved the problem or enabling virtualization so I removed docker desktop and installed docker engine again but with virtualization enabled at BIOS. Surprisingly the error is gone and now I'm able to test my functions. Thanks. |
|
Description:
sam local invoke
fails to locally test a lambda function using a lambda layer.Steps to reproduce:
Observed result:
Expected result:
The function is executed.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.98.0The text was updated successfully, but these errors were encountered: