# TypeError First argument should be a valid curve name on HTTP node

**URL:** <https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937>\
**Category:** General\
**Created:** [9 May 2019 06:47 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937 "2019-05-09T06:47:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![smit.riaan](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@smit.riaan](https://discourse.nodered.org/u/smit.riaan)\
**Post date:** [9 May 2019 06:47 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/1 "2019-05-09T06:47:40Z")

</div>

Hi,  
I've run into a problem which I hope someone can help me with. I'm suddenly getting an error on a HTTP node that is POSTing to another server. The flow has been perfectly for almost a year and now suddenly I'm getting the following error:  
"TypeError: First argument should be a valid curve name".

I copied the flow to another machine and on the second machine it works perfectly.

Any guidance will be appreciated

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 May 2019 07:20 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/2 "2019-05-09T07:20:16Z")

</div>

> [@smit.riaan](#):
>
> TypeError: First argument should be a valid curve name"

What version of node.js are you using?

---

<div class="post-metadata">

**Author:** ![smit.riaan](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@smit.riaan](https://discourse.nodered.org/u/smit.riaan)\
**Post date:** [9 May 2019 07:31 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/3 "2019-05-09T07:31:58Z")

</div>

Hi knolleary, the server is running v6.17.1

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 May 2019 07:33 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/4 "2019-05-09T07:33:30Z")

</div>

Did you try searching for that error before asking here? A quick google shows a few comments about people hitting that error with node 6.x.

Node 6 is no longer maintained and the latest Node-RED release (0.20) does not support it.

You should upgrade to Node 10.x.

---

<div class="post-metadata">

**Author:** ![smit.riaan](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@smit.riaan](https://discourse.nodered.org/u/smit.riaan)\
**Post date:** [9 May 2019 07:40 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/5 "2019-05-09T07:40:49Z")

</div>

Yip did look but didn't but the items I went though pertained to users passing objects instead of strings etc. didn't see any calling out a version issue. Strange though that I suddenly run into a version issue. Did the upgrade resolve the issue for the cases you saw in your search?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 May 2019 07:43 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/6 "2019-05-09T07:43:46Z")

</div>

I didn't look too closely... just enough to see this was an error with Node 6 which Node-RED 0.20 doesn't support. Given we don't support Node 6, I didn't spend anymore time investigating for you.

---

<div class="post-metadata">

**Author:** ![smit.riaan](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@smit.riaan](https://discourse.nodered.org/u/smit.riaan)\
**Post date:** [9 May 2019 07:44 UTC](https://discourse.nodered.org/t/typeerror-first-argument-should-be-a-valid-curve-name-on-http-node/10937/7 "2019-05-09T07:44:51Z")

</div>

Thx appreciate the assistance. Will start by upgrading.
