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

Getting socket hang up error randomly when deployed on lambda #26

Open
MohitNaik-Bit opened this issue Aug 7, 2019 · 2 comments
Open

Comments

@MohitNaik-Bit
Copy link

This issue occurs very randomly and is automatically resolved after few mins. I have attached the cloudwatch logs below for reference.

Unable to generate certificate due to
RequestError: Error: socket hang up
at /var/task/node_modules/cognito-express/lib/strategy.js:41:23
at tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/var/task/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/var/task/node_modules/bluebird/js/release/promise.js:690:18)
at _drainQueueStep (/var/task/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/var/task/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/var/task/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues (/var/task/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)

@rzagorski
Copy link

rzagorski commented Nov 18, 2020

I found the same issue in our environment. Its not minutes but hours but current quick "dummy" solution is to restart lambda

@jcardus
Copy link
Contributor

jcardus commented Dec 10, 2020

Same problem here...

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

3 participants