-
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 start-lambda not work in SDK BOTO3 #3985
Comments
Moving to correct repo. |
Hey @b-y-f, I tried reproducing this issue on a non-M1 Mac and wasn't able to. I will try again on an M1 machine to see if the behaviour is different. |
Thank you |
@b-y-f This has to do with docker networking. |
Thankyou |
Description:
So strange after run
sam local start-lambda
, I can invoke lambda with cliaws lambda invoke --function-name "myFunctionName" --endpoint-url "http://127.0.0.1:3001" --no-verify-ssl --cli-binary-format raw-in-base64-out --payload '{"xx":"xx"}' out.txt
, It gives 200 code.But when I use boto3 with code like below
Error like below raised.
PLUS: after that, I uploaded the lambda I want to test to cloud and used
boto.client('lambda')
and invoked without any problem.Steps to reproduce:
Observed result:
Expected result:
It should run my lambda and return something not
EndpointConnectionError
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: version 1.52.0Add --debug flag to any SAM CLI commands you are running
The text was updated successfully, but these errors were encountered: