# Problems with the function node in 0.20.2

**URL:** <https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036>\
**Category:** General\
**Created:** [15 March 2019 21:37 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036 "2019-03-15T21:37:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anderdk](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anderdk](https://discourse.nodered.org/u/anderdk)\
**Post date:** [15 March 2019 21:37 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/1 "2019-03-15T21:37:47Z")

</div>

Hi is there anybody else that got problems with the function node in version 0.20.2  
the code text is unreadable after upgrade?

---

<div class="post-metadata">

**Author:** ![arlklauss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arlklauss/32/64050_2.png) [@arlklauss](https://discourse.nodered.org/u/arlklauss)\
**Post date:** [15 March 2019 21:39 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/2 "2019-03-15T21:39:49Z")

</div>

Yes. Got the same problem. Text trucated (line over line).

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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 March 2019 21:45 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/3 "2019-03-15T21:45:28Z")

</div>

@arlklauss Hi Antonio, welcome to the forum.

A couple of us have the same problem since v0.20.0. Please answer the following

1. what platform and OS (with OS version)
2. what version of node.js (you can get that from the NR log or by entering `node -v` in a terminal
3. In your browser, display the JavaScript Console and then open the function node. copy and paste any errors you receive.

---

<div class="post-metadata">

**Author:** ![anderdk](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anderdk](https://discourse.nodered.org/u/anderdk)\
**Post date:** [15 March 2019 21:59 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/4 "2019-03-15T21:59:08Z")

</div>

Hi i'm using OS 10.x node.js 10.15.1

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

---

<div class="post-metadata">

**Author:** ![arlklauss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arlklauss/32/64050_2.png) [@arlklauss](https://discourse.nodered.org/u/arlklauss)\
**Post date:** [15 March 2019 22:02 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/5 "2019-03-15T22:02:50Z")

</div>

Hello

- Using ubuntu 16.04lts (kernel 4.4.0-59-generic), x86\_64
- node v. 8.11.4
- chrome v.73

That's what I've got from chrome dev console:

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

Hope that helps.

---

<div class="post-metadata">

**Author:** ![arlklauss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/arlklauss/32/64050_2.png) [@arlklauss](https://discourse.nodered.org/u/arlklauss)\
**Post date:** [15 March 2019 22:03 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/6 "2019-03-15T22:03:30Z")

</div>

Ops... wrong image ... sorry  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0f791b6b8c846c13bb727c449019c8b58f547c58.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 March 2019 22:48 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/7 "2019-03-15T22:48:29Z")

</div>

Andreas - take a look at the post arlklauss did and you will see what the JavaScript console looks like - that is what I want to see.

If you are using Safari, you might need to go to Safari's preferences -\> Advanced and at the bottom and check the `Show Develop menu in menu bar` to use the JavaScript Console

---

<div class="post-metadata">

**Author:** ![Steampunk\_Prof](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Steampunk\_Prof](https://discourse.nodered.org/u/Steampunk_Prof)\
**Post date:** [15 March 2019 23:21 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/8 "2019-03-15T23:21:08Z")

</div>

This really is an unusual bug. I considered it might be down to the version of nodejs on my Pi but it wasn't that and it's also independent of browser type. I can get rid of it by returning to 0.19.6 after every test with 0.20.x.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 March 2019 23:33 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/9 "2019-03-15T23:33:05Z")

</div>

I've got two mac mini same version of the OS same version of node.js. One never had node-red installed until today. I installed NR and that mac has no problem, the other one has the issue go figure....

---

<div class="post-metadata">

**Author:** ![Steampunk\_Prof](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Steampunk\_Prof](https://discourse.nodered.org/u/Steampunk_Prof)\
**Post date:** [15 March 2019 23:38 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/10 "2019-03-15T23:38:37Z")

</div>

I've got several types of Pi with different nodejs versions and they all work fine. It's just this one and now I've lost my Arduino node as a result of my investigation into this.Oh well never mind, didn't want to have a weekend anyway LOL

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 March 2019 23:44 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/11 "2019-03-15T23:44:10Z")

</div>

@knolleary @dceejay I have a BIG lead onthe problem!!!

Earlier today I loaded NR on another mac that had never had NR on it and the problem wasn't happening. Just now I began thinking to myself "What is different?" and it hit me, the contents of the .node-red folder. So I backed up my .node-red folder and emptied the entire folder and started NR The problem is gone!

So it must be a node I have installed or something in the settings file. I'll start digging into that.

UPDATE - ok it is node I have installed! now to track it down (time to remove half the nodes!)

---

<div class="post-metadata">

**Author:** ![Steampunk\_Prof](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Steampunk\_Prof](https://discourse.nodered.org/u/Steampunk_Prof)\
**Post date:** [15 March 2019 23:50 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/12 "2019-03-15T23:50:52Z")

</div>

I was beginning to wonder if that might be the case too. Well done on following up your hunch! I'll do a fresh install and do that as well.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2019 00:01 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/13 "2019-03-16T00:01:51Z")

</div>

Ok in my case the node causing the problem is `node-red-contrib-python3-function`  
If I add that folder into .node-red/node\_modules the problem occurs. If I remove it, the problem is gone.

I wonder if there are a couple contrib nodes that might cause the problem???

---

<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:** [16 March 2019 00:09 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/14 "2019-03-16T00:09:44Z")

</div>

> [@zenofmud](#):
>
> Ok in my case the node causing the problem is `node-red-contrib-python3-function`

Great work @zenofmud - installing that node breaks it for me as well.

Now just a simple matter of figuring out why it breaks things....

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2019 00:14 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/15 "2019-03-16T00:14:07Z")

</div>

If you have this problem and don't have node-red-contrib-python3-function installed it may be some other node. Here is what I did to track down the culprit

1. navagate to your `.node-red/node_modules`
2. move all the `node-red-contrib-xxxxxx` folders to another directory
3. restart NR and see if the problem is gone.  
If it is,
4. stop node-red
5. move a couple of the nodes back in
6. restart NR and see if you have the problem

- NO - go to (4)
- YES it's one of the nodes you moved out - add them back one at a time till you find the bugger!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2019 00:15 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/16 "2019-03-16T00:15:18Z")

</div>

> Now just a simple matter of figuring out why it breaks things....

I leave that to you bright guys, I just figure out what is wrong 😜

---

<div class="post-metadata">

**Author:** ![Steampunk\_Prof](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Steampunk\_Prof](https://discourse.nodered.org/u/Steampunk_Prof)\
**Post date:** [16 March 2019 00:40 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/17 "2019-03-16T00:40:55Z")

</div>

I had that one installed, it's now being removed. Thanks for your hard work!  
Yes, that fixed it 🙂

---

<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:** [16 March 2019 06:29 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/18 "2019-03-16T06:29:26Z")

</div>

So that is where the cdnjs link was coming from [https://github.com/dejanrizvan/node-red-contrib-python3-function/blob/2456a10c429a5cdd8c9396e7e941e0ca59661cb4/lib/python3-function.html#L1](https://github.com/dejanrizvan/node-red-contrib-python3-function/blob/2456a10c429a5cdd8c9396e7e941e0ca59661cb4/lib/python3-function.html#L1)

---

<div class="post-metadata">

**Author:** ![anderdk](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anderdk](https://discourse.nodered.org/u/anderdk)\
**Post date:** [16 March 2019 13:37 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/19 "2019-03-16T13:37:01Z")

</div>

Thank you for the help problem solved 🙂

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 March 2019 14:07 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036/20 "2019-03-16T14:07:52Z")

</div>

@anderdk were you also using `node-red-contrib-python3-function`?

[Next page](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036.md?page=2)
