Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Invalid string length #22

Open
ismaelbej opened this issue Nov 15, 2016 · 1 comment
Open

RangeError: Invalid string length #22

ismaelbej opened this issue Nov 15, 2016 · 1 comment

Comments

@ismaelbej
Copy link

Got this error logged, any idea how to avoid such error?

/mynode/node_modules/bitcoind-rpc/lib/index.js:70
     buf += data;
            ^

RangeError: Invalid string length
   at IncomingMessage.<anonymous> (/mynode/node_modules/bitcoind-rpc/lib/index.js:70:14)
   at emitOne (events.js:77:13)
   at IncomingMessage.emit (events.js:169:7)
   at readableAddChunk (_stream_readable.js:153:18)
   at IncomingMessage.Readable.push (_stream_readable.js:111:10)
   at HTTPParser.parserOnBody (_http_common.js:124:22)
   at Socket.socketOnData (_http_client.js:320:20)
   at emitOne (events.js:77:13)
   at Socket.emit (events.js:169:7)
   at readableAddChunk (_stream_readable.js:153:18)
   at Socket.Readable.push (_stream_readable.js:111:10)
   at TCP.onread (net.js:536:20)
@iBitcoin-se
Copy link

Received data is so big, try to split your RPC call into chunks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants