# 🎉 Node-RED 4.0.2 released

**URL:** https://discourse.nodered.org/t/node-red-4-0-2-released/89149
**Category:** News
**Created:** [1 July 2024 16:12 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149 "2024-07-01T16:12:59Z")
**Posts on this page:** 20
**Page:** 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: [1 July 2024 16:12 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/1 "2024-07-01T16:12:59Z")

</div>

Starting the week with a Node-RED 4.0.2 release to address some issues identified over the last few days.

- Fixes a crash in the new multiplayer mode
- Fixes a memory leak in the editor where the monaco editors were not being tidied up properly
- Fixes caching of the mermaid library - which will save 3Mb of unnecessary loading each time you access the editor

A few other smaller items thrown in as well - details in the changelog:

> **[Release 4.0.2 · node-red/node-red](https://github.com/node-red/node-red/releases/tag/4.0.2)**
>
> What's Changed
> 
> Ensure mermaid.min.js is cached properly between loads of the editor by @knolleary in #4817
> Guard against undefined sessions in multiplayer by @knolleary in #4816
> Allow auth cookie ...

---

<div class="post-metadata">

### Author: ![zkollz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zkollz/32/90947_2.png) [@zkollz](https://discourse.nodered.org/u/zkollz)
#### Post date: [8 July 2024 22:23 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/2 "2024-07-08T22:23:55Z")

</div>

I don't remember if in previous versions when making changes or deploying, the console showed "flows stopped" and "flows started" every time, is this new? It is normal?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [9 July 2024 09:47 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/3 "2024-07-09T09:47:15Z")

</div>

> [@zkollz](#):
>
> It is normal?

Yes, it has always been there 🙂

> [@zkollz](#):
>
> is this new?

No.

---

<div class="post-metadata">

### Author: ![LosinIt](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@LosinIt](https://discourse.nodered.org/u/LosinIt)
#### Post date: [9 July 2024 18:30 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/4 "2024-07-09T18:30:21Z")

</div>

I don't often look at the logs so I don't know how long this has been going on but I just noticed a handful of these errors:

```auto
Unhandled rejection RequestError: AggregateError
    at new RequestError (/data/node_modules/request-promise-core/lib/errors.js:14:15)
    at plumbing.callback (/data/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/data/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/data/node_modules/@cypress/request/request.js:183:22)
    at Request.emit (node:events:519:28)
    at Request.onRequestError (/data/node_modules/@cypress/request/request.js:869:8)
    at ClientRequest.emit (node:events:519:28)
    at TLSSocket.socketErrorListener (node:_http_client:500:9)
    at TLSSocket.emit (node:events:519:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

```

It is not clear what precipitates them but the line:position numbers are always the same.

EDIT: This is with the 4.0.2 docker image

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [11 July 2024 09:30 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/5 "2024-07-11T09:30:05Z")

</div>

Are there any know issues using NR 4.0.2 with Opera?

I just got the following error when opening NR 4.0.2 (running on a Pi) with Opera:

```auto
red.min.js?v=90df56f4f37b:18 Problem initialising 'monaco' code editor ReferenceError: monaco is not defined
    at Object.init (red.min.js?v=90df56f4f37b:19)
    at Object.init (red.min.js?v=90df56f4f37b:18)

```

The editor freezes in the screen before loading the flows:

 ![Screenshot 2024-07-11 at 11.27.49](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e922590e2ae58f3140af036070e1874e0d22f458.png)

Using the same instance with Firefox works perfectly.

---

<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: [11 July 2024 09:35 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/6 "2024-07-11T09:35:46Z")

</div>

That is interesting. I've a distant memory of seeing something similar (somewhere? Home assistant in docker I think) but it didn't register as something to dig into at the time.

Can you tell us your OS and opera version info please? Also, are there any plugins enabled in opera? Does opera have a no-plugins mode you can try please?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 July 2024 09:38 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/7 "2024-07-11T09:38:16Z")

</div>

> [@Steve-Mcl](#):
>
> That is interesting. I've a distant memory of seeing something similar (somewhere? Home assistant in docker I think) but it didn't register as something to dig into at the time.

There was another recent forum post Steve. Docker I seem to remember.

> [@gregorius](#):
>
> The editor freezes in the screen before loading the flows:

Can you look at the networks tab in dev tools and report any resources that fail to load? The console might also say what has failed.

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [11 July 2024 10:15 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/8 "2024-07-11T10:15:39Z")

</div>

> [@Steve-Mcl](#):
>
> Can you tell us your OS and opera version info please? Also, are there any plugins enabled in opera? Does opera have a no-plugins mode you can try please?

Opera Version:74.0.3911.75  
Mac OS X 11.7.10 64-bit  
No plugins installed but didn't find the no plugins mode for Opera. I did try a private tab but that had the same results.

> [@TotallyInformation](#):
>
> Can you look at the networks tab in dev tools and report any resources that fail to load?

All good there too, no failures.

Edit: in the same browser I can successfully open NR 3.1.0 and use it just fine ...

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 July 2024 10:26 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/9 "2024-07-11T10:26:37Z")

</div>

> [@gregorius](#):
>
> Edit: in the same browser I can successfully open NR 3.1.0 and use it just fine ...

Ah, have you done anything to force the browser to clear the cache? On Windows, that would be ctrl-f5, not sure about how to do that on a Mac. On the network tab, you should get just about everything with a 200 response code instead of a 304.

---

<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: [11 July 2024 10:28 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/10 "2024-07-11T10:28:35Z")

</div>

Hi @gregorius

I note you're using Opera v74 - that was released in January 2021.

I've just tested with the current version, Opera v111 and all is working.

---

<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: [11 July 2024 10:31 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/11 "2024-07-11T10:31:33Z")

</div>

As Nick, I have also tested in opera (latest) and it works on Windows too.

We suspect something in the latest monaco is just too new for a browser this old.

However, I have raised an issue here: [Look at possibility of expanding support for older browsers · Issue #10 · node-red/nr-monaco-build · GitHub](https://github.com/node-red/nr-monaco-build/issues/10)

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [11 July 2024 10:38 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/12 "2024-07-11T10:38:11Z")

</div>

> [@Steve-Mcl](#):
>
> However, I have raised an issue here

Cheers! If it's not a general issue and I assume it isn't since updated versions of Opera work.

Btw wasn't there a proposal to throw one of the editors out? Ace or Monaco? Or do I recall that incorrectly?

> [@knolleary](#):
>
> I note you're using Opera v74 - that was released in January 2021.

Ok, I'll look into updating Opera with Firefox starts to fail! I actually don't like Opera because it seems to regularly "forget" my privacy settings ...

> [@TotallyInformation](#):
>
> Ah, have you done anything to force the browser to clear the cache?

Did that too, made no difference.

It seems that the solution would be an update of Opera or use Firefox - I'm happy to go for the latter.

Thanks for all the help! 👍

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [11 July 2024 10:45 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/13 "2024-07-11T10:45:08Z")

</div>

@LosinIt

As all of the modules are being loaded from `/data/node_modules` this strongly implies this is a problem with an async callback in a node you have installed.

The `@cypress` implies it's a node that is interacting with a webpage, but that's about all we can say at this point.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 July 2024 10:45 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/14 "2024-07-11T10:45:13Z")

</div>

> [@gregorius](#):
>
> All good there too, no failures

Looking at the console for Opera 74 on Windows, you see this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/1/31bb4f42a1a6c41ee708f220fd157567a72f13a5.png)

Which shows you what is going wrong. Unfortunately, even formatting the editor.js doesn't give a meaningful view (all still on 1 line) so not possible to easily see exactly what is wrong. Possibly someone with the correct setup could get the map file which would help.

> [@knolleary](#):
>
> I note you're using Opera v74 - that was released in January 2021

While this is true Nick, and I've confirmed by installing the old version, are we really wanting to exclude JavaScript versions from 2021? (not saying one way or the other, just looking to make sure that whatever is done is deliberate rather than accidental).

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [11 July 2024 10:48 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/15 "2024-07-11T10:48:16Z")

</div>

> [@TotallyInformation](#):
>
> I've confirmed by installing the old version

Thanks for confirming my sanity! The error message you're getting is exactly what I got - first the warning then the error ...

---

<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: [11 July 2024 10:49 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/16 "2024-07-11T10:49:59Z")

</div>

> [@TotallyInformation](#):
>
> While this is true Nick, and I've confirmed by installing the old version, are we really wanting to exclude JavaScript versions from 2021? (not saying one way or the other, just looking to make sure that whatever is done is deliberate rather than accidental).

I wasn't making any statement on this aspect - just that we believed we had identified the root cause here and the quick fix would be to update to a more recent browser version.

Steve has also raised an issue to see if we can build monaco to be a bit more backward compatible.

---

<div class="post-metadata">

### Author: ![LosinIt](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@LosinIt](https://discourse.nodered.org/u/LosinIt)
#### Post date: [11 July 2024 13:17 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/17 "2024-07-11T13:17:48Z")

</div>

Thanks, @hardillb, I'll see what I can figure out from this insight.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [12 July 2024 08:42 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/18 "2024-07-12T08:42:29Z")

</div>

I have rebuilt the v4.0.2 Docker containers to add the ARMv7 32bit containers back.

They should be available going forward.

---

<div class="post-metadata">

### Author: ![zkollz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zkollz/32/90947_2.png) [@zkollz](https://discourse.nodered.org/u/zkollz)
#### Post date: [4 August 2024 17:08 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/19 "2024-08-04T17:08:25Z")

</div>

I would like to know if it is possible to solve a problem in the email nodes, which happens when I get an error when connecting using IMAP, this error apparently stays cached and only disappears when I restart completely nodered.

Is there a way to solve this or can it be considered an NR bug?

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [6 August 2024 19:07 UTC](https://discourse.nodered.org/t/node-red-4-0-2-released/89149/20 "2024-08-06T19:07:02Z")

</div>

The email nodes are not part of the core Node-RED release, they are maintained separately in the [GitHub - node-red/node-red-nodes: Extra nodes for Node-RED](https://github.com/node-red/node-red-nodes) repo.

Please raise an issue there with as much detail as possible.

[Next page](https://discourse.nodered.org/t/node-red-4-0-2-released/89149.md?page=2)
