kaiseki icon indicating copy to clipboard operation
kaiseki copied to clipboard

error socket hang up code 'econnreset'

Open sjunnesson opened this issue 11 years ago • 5 comments

After running Kaiseki for a while polling Parse variables I get this error.

" error socket hang up code 'econnreset' "

This seems to be related to this issue http://stackoverflow.com/questions/18692580/node-js-post-causes-error-socket-hang-up-code-econnreset

Could a fix be implemented somewhere in the code?

sjunnesson avatar Feb 03 '14 19:02 sjunnesson

@sjunnesson I use request for all Parse API calls. Could it be solved by upgrading that?

shiki avatar Feb 05 '14 00:02 shiki

not sure but possible. Depends if the bug is in there also. The solution seems to be to add a properly calculated length to the request which Im not sure if that happens on your side or the request side.

sjunnesson avatar Feb 05 '14 00:02 sjunnesson

@sjunnesson Can you give me more info on how to reproduce this? Thanks!

shiki avatar Feb 05 '14 23:02 shiki

it occurs after doing multiple connection to Parse over a 24 hour period. Probably do about 10k querries in that time frame. The whole node script is being kept alive with a forever and I believe it is in conjunction with the forever script that some port is not properly closed down when exiting and then restarting.

Sorry for the vague descriptions but due to NDA I cant share the code.

sjunnesson avatar Feb 06 '14 15:02 sjunnesson

@sjunnesson Did you ever figure out this issue? I am seeing the same problem with ECONNRESET, ECONNTIMEOUT as well.

mlolson avatar Jul 31 '15 18:07 mlolson