Skip to content
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

VPC lambda timeout failure #34

Open
BastLeblanc opened this issue Mar 12, 2020 · 1 comment
Open

VPC lambda timeout failure #34

BastLeblanc opened this issue Mar 12, 2020 · 1 comment

Comments

@BastLeblanc
Copy link

Hi,

The behavior for a in-VPC Lambda function with no internet access lacks error messages and timeout.

  • there's no timeout, it should try (eventually retry) and fail with an error message, here:

  • It should be clear (documentation and error message) that the Lambda function needs access to S3 to report the status, by either full internet access or by having an S3 endpoint in the VPC

Bastien(AWS)

@ptc-jpompe
Copy link

If you add a timeout to the connection it will at least show some errors in the logs.

[ERROR]	...	Unexpected failure sending response to CloudFormation timed out
Traceback (most recent call last):
  File "/var/task/crhelper/utils.py", line 28, in _send_response
    connection.request(method="PUT", url=url, body=json_response_body, headers=headers)
  File "/var/lang/lib/python3.8/http/client.py", line 1230, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/var/lang/lib/python3.8/http/client.py", line 1276, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/var/lang/lib/python3.8/http/client.py", line 1225, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/var/lang/lib/python3.8/http/client.py", line 1004, in _send_output
    self.send(msg)
  File "/var/lang/lib/python3.8/http/client.py", line 944, in send
    self.connect()
  File "/var/lang/lib/python3.8/http/client.py", line 1392, in connect
    super().connect()
  File "/var/lang/lib/python3.8/http/client.py", line 915, in connect
    self.sock = self._create_connection(
  File "/var/lang/lib/python3.8/socket.py", line 808, in create_connection
    raise err
  File "/var/lang/lib/python3.8/socket.py", line 796, in create_connection
    sock.connect(sa)
socket.timeout: timed out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants