dparlevliet / node.bittrex.api

Node Bittrex API is an asynchronous node.js library for the Bittrex API, the data can be received either via GET request or Stream.
MIT License
253 stars 100 forks source link

Error: ESOCKETTIMEDOUT while accessing 249 coinpairs through bittrex.getcandles() method . #141

Closed droidmanspace closed 6 years ago

droidmanspace commented 6 years ago
{ success: false,
  message: 'URL request error',
  error: 
   { Error: ESOCKETTIMEDOUT
       at ClientRequest.<anonymous> (D:\bitt\node_modules\request\request.js:813:19)
       at Object.onceWrapper (events.js:314:30)
       at emitNone (events.js:105:13)
       at ClientRequest.emit (events.js:207:7)
       at TLSSocket.emitTimeout (_http_client.js:722:34)
       at Object.onceWrapper (events.js:314:30)
       at emitNone (events.js:105:13)
       at TLSSocket.emit (events.js:207:7)
       at TLSSocket.Socket._onTimeout (net.js:398:8)
       at ontimeout (timers.js:469:11) code: 'ESOCKETTIMEDOUT', connect: false },
  result: undefined }

does every request need some delay?

dparlevliet commented 6 years ago

You'd be wise to give it a delay. You either maxed out your internet bandwidth or they blocked your ip as a threat (possibly temporarily).