<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nodejs request: HPE_INVALID_HEADER_TOKEN in Servers - General</title>
    <link>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7162040#M16537</link>
    <description>&lt;P&gt;Node v12 has a new parser that is more strict with header validation, which can cause the same errors, especially with sites using Imperva/Incapsula that include an invalid header in HTTP 1.1 responses.&lt;/P&gt;&lt;P&gt;A temporary solution is to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--http-parser=legacy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option in node's command line, or in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;NODE_OPTIONS&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;environment variable.&lt;/P&gt;&lt;P&gt;Since&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;v12.15.0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;v10.19.0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;you can do this:&lt;/P&gt;&lt;PRE&gt;http.&lt;SPAN class=""&gt;request&lt;/SPAN&gt;(url, { &lt;SPAN class=""&gt;insecureHTTPParser&lt;/SPAN&gt;: &lt;SPAN class=""&gt;true&lt;/SPAN&gt; })&lt;/PRE&gt;&lt;P&gt;Additional information can be found here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/nodejs/node/issues/27711#issuecomment-584621376" target="_blank" rel="noopener noreferrer"&gt;https://github.com/nodejs/node/issues/27711#issuecomment-584621376&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--http-parser=legacy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is no longer supported in recent versions (including minor versions of v12). A solution for newer node versions is to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--insecure-http-parser&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;instead. &lt;A href="https://crediblebh.live/" target="_blank" rel="noopener"&gt;Crediblebh&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 11:13:53 GMT</pubDate>
    <dc:creator>creditexpress</dc:creator>
    <dc:date>2022-03-08T11:13:53Z</dc:date>
    <item>
      <title>Nodejs request: HPE_INVALID_HEADER_TOKEN</title>
      <link>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7153450#M15944</link>
      <description>&lt;P&gt;I get HPE_INVALID_HEADER_TOKEN on a specific page utilizing demand module. From what I've found on Google, this is brought about by a wrong/deformed server reaction, but the last option isn't influenced quite a bit by. Would i be able to design demand to overlook invalid headers or simply give me the entire crude reaction for handling?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;A href="https://www.crediblebh.vip/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;&lt;FONT color="#999999"&gt;CredibleBH Login&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 09:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7153450#M15944</guid>
      <dc:creator>Gregory89</dc:creator>
      <dc:date>2021-11-08T09:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nodejs request: HPE_INVALID_HEADER_TOKEN</title>
      <link>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7153486#M15948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The error&amp;nbsp;HPE_INVALID_HEADER_TOKEN, as far as I know, its not related to HPE domain or company.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/node-red/node-red/issues/974" target="_blank"&gt;https://github.com/node-red/node-red/issues/974&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.yeolar.com/media/doc/coral/html/http__parser_8h.html" target="_blank"&gt;http://www.yeolar.com/media/doc/coral/html/http__parser_8h.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 15:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7153486#M15948</guid>
      <dc:creator>Suman_1978</dc:creator>
      <dc:date>2021-11-03T15:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nodejs request: HPE_INVALID_HEADER_TOKEN</title>
      <link>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7162040#M16537</link>
      <description>&lt;P&gt;Node v12 has a new parser that is more strict with header validation, which can cause the same errors, especially with sites using Imperva/Incapsula that include an invalid header in HTTP 1.1 responses.&lt;/P&gt;&lt;P&gt;A temporary solution is to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--http-parser=legacy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option in node's command line, or in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;NODE_OPTIONS&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;environment variable.&lt;/P&gt;&lt;P&gt;Since&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;v12.15.0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;v10.19.0&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;you can do this:&lt;/P&gt;&lt;PRE&gt;http.&lt;SPAN class=""&gt;request&lt;/SPAN&gt;(url, { &lt;SPAN class=""&gt;insecureHTTPParser&lt;/SPAN&gt;: &lt;SPAN class=""&gt;true&lt;/SPAN&gt; })&lt;/PRE&gt;&lt;P&gt;Additional information can be found here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/nodejs/node/issues/27711#issuecomment-584621376" target="_blank" rel="noopener noreferrer"&gt;https://github.com/nodejs/node/issues/27711#issuecomment-584621376&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--http-parser=legacy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is no longer supported in recent versions (including minor versions of v12). A solution for newer node versions is to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;--insecure-http-parser&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;instead. &lt;A href="https://crediblebh.live/" target="_blank" rel="noopener"&gt;Crediblebh&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 11:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/nodejs-request-hpe-invalid-header-token/m-p/7162040#M16537</guid>
      <dc:creator>creditexpress</dc:creator>
      <dc:date>2022-03-08T11:13:53Z</dc:date>
    </item>
  </channel>
</rss>

