# Help with HPE Invalid header token

**URL:** <https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968>\
**Category:** General\
**Tags:** http-request\
**Created:** [20 July 2023 13:10 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968 "2023-07-20T13:10:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Percent](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@Percent](https://discourse.nodered.org/u/Percent)\
**Post date:** [20 July 2023 13:10 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/1 "2023-07-20T13:10:32Z")

</div>

Hi!!

I'm moving my first steps with NR (as Home assistant integration) and I'm having my first issue...

I'trying to send this simple http request:  
[https://lanaddress/cgi-bin/api.cgi?apikey=apikey&cmd=version](https://lanaddress/cgi-bin/api.cgi?apikey=apikey&cmd=version)  
to a Lan web server, and I'm getting this error:  
"RequestError: Parse Error: Invalid header value char.  
If I copy/paste the same URL on Chrome it just works.  
I'not black belt in headers but checking the server header I cannot see a suspicious char.  
Is there anything I can do to bypass such a strict header check?

Thank you!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 July 2023 13:29 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/2 "2023-07-20T13:29:48Z")

</div>

Welcome to the forum @Percent

> [@Percent](#):
>
> RequestError: Parse Error: Invalid header value char.

That is very strange. The only other reference to that error that I can find in the forum is [this post](https://discourse.nodered.org/t/postman-http-get-request-is-functioning-node-red-returning-requesterror-parse-error-invalid-header-value-char/79935) which was posted just yesterday.

---

<div class="post-metadata">

**Author:** ![gettmad](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@gettmad](https://discourse.nodered.org/u/gettmad)\
**Post date:** [20 July 2023 13:36 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/3 "2023-07-20T13:36:55Z")

</div>

I am currently experiencing this issue as well and have played endlessly with my configurations. I tried encoding the URL, setting the headers and other settings within the function node, and selecting the 'Disable strict HTTP parsing' check box all without success. The most misleading part is that the request works perfectly fine in Postman.

If I find any result I will comment back here.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 July 2023 14:15 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/4 "2023-07-20T14:15:45Z")

</div>

> [@gettmad](#):
>
> I am currently experiencing this issue as well

Just to clarify, @gettmad's issue is not a third case, it is the one I already linked to.

---

<div class="post-metadata">

**Author:** ![Percent](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@Percent](https://discourse.nodered.org/u/Percent)\
**Post date:** [20 July 2023 22:27 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/5 "2023-07-20T22:27:20Z")

</div>

Thanks, I hope we can find something to bypass the error as it seems it's only occurring with node red.

---

<div class="post-metadata">

**Author:** ![gettmad](https://avatars.discourse-cdn.com/v4/letter/g/48db29/32.png) [@gettmad](https://discourse.nodered.org/u/gettmad)\
**Post date:** [27 July 2023 12:07 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/6 "2023-07-27T12:07:19Z")

</div>

Percent,

Please see my latest comment on the following post:  
[Using HTTP Request to pull data from FANUC Web Sever](https://discourse.nodered.org/t/using-http-request-to-pull-data-from-fanuc-web-sever/80095/2)

Further, to install the beta you can invoke the following command in the command line window:

_npm install -g --unsafe-perm node-red@next_

I hope this solves your issue as it solved mine.

Best of luck.

---

<div class="post-metadata">

**Author:** ![Percent](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@Percent](https://discourse.nodered.org/u/Percent)\
**Post date:** [31 July 2023 17:22 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/7 "2023-07-31T17:22:19Z")

</div>

Thanks gettmad!!  
I think I'll wait for the stable release, but I'm happy to see it worked for you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 September 2023 17:23 UTC](https://discourse.nodered.org/t/help-with-hpe-invalid-header-token/79968/8 "2023-09-29T17:23:05Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
