# Function not configured correctly?

**URL:** <https://discourse.nodered.org/t/function-not-configured-correctly/10543>\
**Category:** General\
**Created:** [25 April 2019 14:53 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543 "2019-04-25T14:53:22Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 14:53 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/1 "2019-04-25T14:53:22Z")

</div>

Hi,

So, this a something that I noticed when I installed node-red on a windows server 2016.

`[{"id":"ebb238cf.5499d8","type":"debug","z":"6d88a3be.4aed1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":691.4285736083984,"y":217.14285373687744,"wires":[]}]`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/30921270b0b3d47ada6d0c5b45962f809428d9e8.png)

the function node says it hasn't been configured correctly but, it seems to be working okay. Is there something I need to change?

Thanks in Advance.

---

<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:** [25 April 2019 14:58 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/2 "2019-04-25T14:58:04Z")

</div>

Hi @KevinPamu - your flow export only includes the debug node, so we can't see what you have in your Function node.

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 15:38 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/3 "2019-04-25T15:38:51Z")

</div>

Oops I didn't notice that,

`[{"id":"b962629c.8f063","type":"function","z":"6d88a3be.4aed1","name":"","func":"var x = msg.payload;\nmsg.payload = x;\nreturn msg;","outputs":1,"noerr":2,"x":1622.8572463989257,"y":131.4285659790039,"wires":[["ebb238cf.5499d8"]]},{"id":"1ad6a14b.9d9cd3","type":"inject","z":"6d88a3be.4aed1","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1405.7144077845982,"y":127.14284787859236,"wires":[["b962629c.8f063"]]},{"id":"ebb238cf.5499d8","type":"debug","z":"6d88a3be.4aed1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1840.00010572161,"y":134.28570543016707,"wires":[]}]`

Here is the full flow.

---

<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:** [25 April 2019 15:50 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/4 "2019-04-25T15:50:55Z")

</div>

If you open the node's edit dialog and close it again, it should clear the error.

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 16:40 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/5 "2019-04-25T16:40:08Z")

</div>

I tried that, did not seem to help. This is happening with all my function nodes that I make changes to and deploy.

---

<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:** [25 April 2019 18:11 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/6 "2019-04-25T18:11:13Z")

</div>

Can you stop node red and restart it from a terminal and post the log here please? That will show us what versions of everything you have and whether there are any obvious problems. I don't know about a Windows install but you may be able to do that using

```bash
node-red-stop
node-red-start

```

---

<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:** [25 April 2019 18:39 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/7 "2019-04-25T18:39:32Z")

</div>

@Colin , this is not on a Pi so those commands are meaningless.

@KevinPamu what version of Node-RED are you using?

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 19:47 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/8 "2019-04-25T19:47:20Z")

</div>

@knolleary v0.20.5 is what I have installed on the Windows Server 2016 machine.

---

<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:** [25 April 2019 19:48 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/9 "2019-04-25T19:48:10Z")

</div>

When you open it's edit dialog, does the text editor show any errors?

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 19:58 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/10 "2019-04-25T19:58:18Z")

</div>

@knolleary No, it doesn't. I believe this occurs only when I run it on the windows server 2016. I have several other instances of the same flows on windows 10 that do not show the error message.

---

<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:** [25 April 2019 20:36 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/11 "2019-04-25T20:36:21Z")

</div>

> [@knolleary](#):
>
> this is not on a Pi so those commands are meaningless.

Hence why I phrased my point the way I did. It would still be worth seeing the startup log wouldn't it?

Colin

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 20:47 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/12 "2019-04-25T20:47:58Z")

</div>

hey @Colin,

This is what I get when I start NR

```auto
Welcome to Node-RED
===================

25 Apr 15:43:16 - [info] Node-RED version: v0.20.5
25 Apr 15:43:16 - [info] Node.js version: v10.15.3
25 Apr 15:43:16 - [info] Windows_NT 10.0.14393 x64 LE
25 Apr 15:43:21 - [info] Loading palette nodes
25 Apr 15:43:28 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
25 Apr 15:43:30 - [info] Settings file : ****
25 Apr 15:43:30 - [info] Context store : 'default' [module=memory]
25 Apr 15:43:30 - [info] User directory : ****
25 Apr 15:43:30 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 Apr 15:43:30 - [info] Flows file : ****
25 Apr 15:43:30 - [info] Server now running at http://127.0.0.1:1880/
25 Apr 15:43:30 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

```

---

<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:** [25 April 2019 20:51 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/13 "2019-04-25T20:51:38Z")

</div>

OK, nothing obvious out or order there.

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [25 April 2019 20:55 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/14 "2019-04-25T20:55:31Z")

</div>

I was thinking the same. I am not sure if the windows version somehow affects the node?

---

<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:** [25 April 2019 22:10 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/15 "2019-04-25T22:10:15Z")

</div>

The behaviour you are describing is entirely within the editor in the browser. The version of node.js is not very relevant.

What browser are you using to access the editor? Are you using different browsers when trying on the different machines?

---

<div class="post-metadata">

**Author:** ![KevinPamu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Post date:** [26 April 2019 13:40 UTC](https://discourse.nodered.org/t/function-not-configured-correctly/10543/16 "2019-04-26T13:40:38Z")

</div>

Ah, That could be it. It was internet explorer.
