n0mad01 / node.bittrex.api

No longer maintained
MIT License
183 stars 187 forks source link

[Error: socket hang up] code: 'ECONNRESET', sslError: undefined ? #13

Closed hems closed 8 years ago

hems commented 8 years ago

From time to time i'm getting

{ [Error: socket hang up] code: 'ECONNRESET', sslError: undefined }
{ [Error: socket hang up] code: 'ECONNRESET', sslError: undefined }

Any idea of what might be happening?

On a side note, i believe the socket connection shouldn't have been made since i'm not using any socket related features ? ( i'm only checking order book )

this are the options i'm currently using:

    'apikey'    : process.env.BITTREX_KEY
    'apisecret' : process.env.BITTREX_SECRET
    'stream'    : false
    'verbose'   : false
    'cleartext' : false 
n0mad01 commented 8 years ago

This will be most likely due to closed TCP connections, maybe the Bittrex API is overloaded, maybe you query the api too often (in this case try to throttle your API requests a little bit).

socket connection - yes, you are using socket connections when you are doing http requests.

hems commented 8 years ago

@n0mad01 ha yeah sure, i meant using the push API i didn't think i would get a "socket hang up" error from doing http requests (( :