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

The library does not work on the latest version of node

Open Giancarlo1974 opened this issue 6 years ago • 0 comments

The library does not work on the latest version of node

node -v v12.6.0

node index.js i got this error:

Error: Parse Error at TLSSocket.socketOnData (_http_client.js:452:22) at TLSSocket.emit (events.js:203:13) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at TLSSocket.Readable.push (_stream_readable.js:210:10) at TLSWrap.onStreamRead (internal/stream_base_commons.js:166:17) { bytesParsed: 480, code: 'HPE_INVALID_HEADER_TOKEN', reason: 'Invalid header value char' }

This is the temporary workaround for executing the code:

node --http-parser=legacy index.js

Giancarlo1974 avatar Jul 22 '19 13:07 Giancarlo1974