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

The library does not work on the latest version of node #31

Open
Giancarlo1974 opened this issue Jul 22, 2019 · 0 comments
Open

The library does not work on the latest version of node #31

Giancarlo1974 opened this issue Jul 22, 2019 · 0 comments

Comments

@Giancarlo1974
Copy link

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

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

1 participant