sam local invoke - Timed out while attempting to establish a connection to the container #3860
Labels
area/docker
blocked/close-if-inactive
Blocked for >14 days with no response, will be closed if still inactive after 7 days
Description:
The following command started to error Timed out while attempting to establish a connection to the container
sam local invoke MyTestLambda --event my-test-event.json --debug --docker-network host
The project that is experiencing this issue had not been touched since version 1.6.2 of the aws-sam-cli. When upgrading to the lastest version 1.48.0 we started to see this issue. After trying a number of versions we found this issue started after version 1.12.0.
Steps to reproduce:
sam local invoke MyTestLambda --event my-test-event.json --debug --docker-network host
using a template.yaml similar to the following. NOTE: the template below has a bunch of stuff renamed from the original and values obfuscated to hide some things. This is just to give an idea of what was being used.Observed result:
As you can see in the logs we did try increasing the SAM_CLI_CONTAINER_CONNECTION_TIMEOUT without luck
Expected result:
Lambda should have been invoked and it was not due to container connection timeout
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.48.0NOTE: This started happening with version 1.13.1
The text was updated successfully, but these errors were encountered: