Other HPE Product Questions
1819791 Members
3269 Online
109607 Solutions
New Discussion

Node.js request.js HPE_INVALID_HEADER_TOKEN

 
Martin6478
Occasional Visitor

Node.js request.js HPE_INVALID_HEADER_TOKEN

I got desperate about one problem and I need some help... I'm using node.js to crawl a list of websites, some of them gives me this error, for example: http://www.fz-juelich.de/portal/DE/Home/home_node.html, Parse Error, HPE_INVALID_HEADER_TOKEN

 

request.get({
    url: uri,
    timeout: timeout,
    headers: {
        referer: domain
    }
}, (error, response, body) => {
    if (error)
        console.log(error);
    console.log(body);
});

 

though, curl -i --raw http://www.fz-juelich.de/portal/DE/Home/home_node.html works just perfect.

 

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Cache-Control: no-cache
JSESSIONID=E594677A6CCA13BE0338E1D00A729C34; Path=/cae:
Content-Type: text/html;charset=utf-8
Content-Language: de
Set-Cookie: JSESSIONID=E594677A6CCA13BE0338E1D00A729C34; Path=/
Content-Length: 19677

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

 

Also I'm able to see this Official website in my chrome browser.

Any ideas in which side should I dig to get rid of this errors?

1 REPLY 1
Vajith V
HPE Pro

Re: Node.js request.js HPE_INVALID_HEADER_TOKEN

Hello ,

Fortify is part of a different company named "Micro Focus", so you may need to repost your question in Micro Focus Community at https://community.softwaregrp.com/

Regards,
Vajith

I am an HPE employee
Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise

Accept or Kudo