You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
vincentsolutions
changed the title
socket hang up error on sls run.
socket hang up error on sls run.
Oct 29, 2017
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
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
Every time I'm trying to
sls run
a service that takes more than 2 minutes to load the functions, I receive asocket 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'llhang 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 tosls run
services for more than 2 minutes, the timeout occurs, and I get thesocket 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?
The text was updated successfully, but these errors were encountered: