Ask questionsHPE_INVALID_HEADER_TOKEN on http requests
Upgrading to 12.2.0 broke several http calls with a parse error
HPE_INVALID_HEADER_TOKEN, all requests were working fine with version 11.10.0 I had before the upgrade.
I tried http-parser-js library to patch http but I still get the same issue
process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
Answer questions mscdex
@jd4ever That response is malformed. According to the http spec, spaces are not permitted in header field names. So this is a case of the old http parser being less strict than the new http parser that's on by default in node v12.
You can still use the old http parser for now in node v12 by passing
--http-parser=legacy to your node command line.