# Invalid input: NaN

**URL:** <https://discourse.nodered.org/t/invalid-input-nan/9078>\
**Category:** General\
**Created:** [17 March 2019 12:01 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078 "2019-03-17T12:01:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eervi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eervi/32/6869_2.png) [@Eervi](https://discourse.nodered.org/u/Eervi)\
**Post date:** [17 March 2019 12:01 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/1 "2019-03-17T12:01:57Z")

</div>

Hej!

- I´m trying my first program on node-RED  
Raspberry Pi  
Homeki -\> Relay  
Debug: msg: msg : string[18] "Invalid input: NaN"

Did yet find out the problem what I have

-lm-

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 March 2019 12:06 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/2 "2019-03-17T12:06:28Z")

</div>

Welcome to the forum.

Unfortunately we are not psychic or mind readers and will need more information to help you.

Try adding pictures, your flow (surrounded with triple ticks ````code here ````) and what you have tried already.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [17 March 2019 12:29 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/3 "2019-03-17T12:29:14Z")

</div>

but NaN means whatever node you are using is expecting a number and what ever you have sent is Not a Number

---

<div class="post-metadata">

**Author:** ![Eervi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eervi/32/6869_2.png) [@Eervi](https://discourse.nodered.org/u/Eervi)\
**Post date:** [17 March 2019 13:25 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/4 "2019-03-17T13:25:55Z")

</div>

3/17/2019, 1:55:03 PM[node: Relay](http://10.50.3.106:1880/#)msg : string[18]

"Invalid input: NaN"

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [17 March 2019 14:04 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/5 "2019-03-17T14:04:43Z")

</div>

and if you add a debug one step before ? (ie what are you sending into that node...)

---

<div class="post-metadata">

**Author:** ![Eervi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eervi/32/6869_2.png) [@Eervi](https://discourse.nodered.org/u/Eervi)\
**Post date:** [17 March 2019 14:22 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/6 "2019-03-17T14:22:13Z")

</div>

Hej!

Thank you so much. I´m learnig I hope seems to be working now, Me 🙂

-lm-

---

<div class="post-metadata">

**Author:** ![raj2911](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@raj2911](https://discourse.nodered.org/u/raj2911)\
**Post date:** [6 June 2021 05:23 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/7 "2021-06-06T05:23:51Z")

</div>

Here i have the same issue and i used the debug node to check what the function is sending and in the debug node it says its a number. But the rpio out is accepting as a string

 ![2021-06-06-092300_1024x768_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/2/d2ede2ff549a94410c958a43ff866941d184c71e.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 June 2021 06:52 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/8 "2021-06-06T06:52:09Z")

</div>

See reply in your other thread (please dont double post)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 June 2021 06:52 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078/9 "2021-06-06T06:52:16Z")

</div>


