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

"socket hang up" error when running "sls run" for more than 2 minutes. #134

Open
vincentsolutions opened this issue Oct 29, 2017 · 1 comment

Comments

@vincentsolutions
Copy link

Every time I'm trying to sls run a service that takes more than 2 minutes to load the functions, I receive a socket hang up error that stops my function loading.
Often, if I have a sls run window that is already running, it will load the functions in that window, but it'll hang up before those functions are registered.

From my investigations, I think that this is caused by the fact that the plain node child-process that emulator spawns has a default server timeout of 2 minutes, so whenever I'm trying to sls run services for more than 2 minutes, the timeout occurs, and I get the socket hang up error.

I think that #4 could fix this if there was a timeout config param that we could set.
But maybe there's an easier/quicker solution to this without having to implement a config system?

@vincentsolutions vincentsolutions changed the title socket hang up error on sls run. socket hang up error on sls run. Oct 29, 2017
@vincentsolutions vincentsolutions changed the title socket hang up error on sls run. socket hang up error when running sls run for more than 2 minutes. Oct 29, 2017
@vincentsolutions vincentsolutions changed the title socket hang up error when running sls run for more than 2 minutes. "socket hang up" error when running "sls run" for more than 2 minutes. Oct 29, 2017
@iksnae
Copy link

iksnae commented Sep 7, 2018

anything new on this. i'm this issue consistently now.

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