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

Bug: Increased socket timeouts on AWS Lambda #1200

Closed
schuyler1d opened this issue Aug 16, 2019 · 2 comments
Closed

Bug: Increased socket timeouts on AWS Lambda #1200

schuyler1d opened this issue Aug 16, 2019 · 2 comments
Labels
A-server-side (nodejs) Area: All changes on the server side C-bug Type: Bug

Comments

@schuyler1d
Copy link
Collaborator

Describe the bug
We are seeing increased errors like the following on AWS Lambda:

2019-08-16T19:44:28.651Z 1ec92a94-edf9-4043-b9a4-d60c3a4b24b7 { Error: socket hang up
at createHangUpError (_http_client.js:299:15)
at Socket.socketOnEnd (_http_client.js:391:23)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9) code: 'ECONNRESET' }

Most seem to be triggered from /twilio and /twilio-message-report
with the timeouts occuring about 2minutes after the request.

This thread:
CodeGenieApp/serverless-express#199
pointed to this thread:
CodeGenieApp/serverless-express#234 (comment)
Which might indicate Node 10.x is the issue.

More directly, it might indicate that there is a non-awaited promise that is unresolved during handleIncomingMessage workflow.

To Reproduce

  1. Deploy to lambda
  2. receive messages from the /twilio endpoint
  3. Possibly not all messages respond this way, so you might need volume
@schuyler1d schuyler1d added C-bug Type: Bug A-server-side (nodejs) Area: All changes on the server side labels Aug 16, 2019
@shakalee14 shakalee14 self-assigned this Aug 23, 2019
@ibrand
Copy link
Collaborator

ibrand commented Jan 24, 2020

@schuyler1d do we still see these?

@schuyler1d
Copy link
Collaborator Author

Yes but there strategy is to work around it like in https://github.com/MoveOnOrg/Spoke/pull/1352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-server-side (nodejs) Area: All changes on the server side C-bug Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants