node-ib icon indicating copy to clipboard operation
node-ib copied to clipboard

Uncaught Exception RangeError in Socket

Open itsjimbo opened this issue 9 years ago • 1 comments

Once in a great while, I get these, which is impossible to catch

RangeError: Invalid array length
    at Incoming.process (node_modules/ib/lib/incoming.js:1229:41)
    at Socket._onData (node_modules/ib/lib/socket.js:48:30)
    at Socket.<anonymous> (node_modules/ib/lib/socket.js:87:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)

itsjimbo avatar Sep 21 '16 15:09 itsjimbo

I just got the exact same error. Nothing out of the ordinary seem to have happened right before, at least not according to my logs - I'm logging every state transition in my connection, and I'm logging every error message.

node_modules/ib/lib/incoming.js:1229
      this._dataQueue = this._dataQueue.concat(dataQueueSnapshot);
                                        ^
RangeError: Invalid array length
    at Incoming.process (node_modules/ib/lib/incoming.js:1229:41)
    at Socket._onData (node_modules/ib/lib/socket.js:48:30)
    at Socket.<anonymous> (node_modules/ib/lib/socket.js:91:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)

bfreis avatar Oct 04 '16 05:10 bfreis