# Problem Maximum call stack size exceeded using node-red-contrib-aedes

**URL:** <https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868>\
**Category:** General\
**Tags:** mqtt\
**Created:** [1 June 2023 13:30 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868 "2023-06-01T13:30:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![carflomi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carflomi/32/45646_2.png) [@carflomi](https://discourse.nodered.org/u/carflomi)\
**Post date:** [1 June 2023 13:30 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/1 "2023-06-01T13:30:31Z")

</div>

Hello.  
I am using node-red to implement a MQTT broquer (node-red-contrib-aedes) and node-red its working in a Docker, Everything is working correctly but, I detect the following error

```auto
1 Jun 15:05:59 - [red] Uncaught Exception:
1 Jun 15:05:59 - [error] RangeError: Maximum call stack size exceeded
    at AedesBrokerNode.Node.send (/usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:369:31)
    at Aedes.<anonymous> (/data/node_modules/node-red-contrib-aedes/aedes.js:319:14)
    at Aedes.emit (node:events:513:28)
    at PublishState.callPublished (/data/node_modules/aedes/aedes.js:255:15)
    at makeCallTwo (/data/node_modules/fastseries/series.js:150:3)
    at MQEmitter.release (/data/node_modules/fastseries/series.js:138:7)
    at MQEmitter.parallel [as _parallel] (/data/node_modules/fastparallel/parallel.js:25:12)
    at MQEmitter._do (/data/node_modules/mqemitter/mqemitter.js:133:8)
    at released (/data/node_modules/mqemitter/mqemitter.js:48:12)
    at MQEmitter.parallel [as _parallel] (/data/node_modules/fastparallel/parallel.js:26:7)

```

If I am not mistaken it is associated to the use of the node "node-network-contrib-aedes".

I don't get more information only that node-network restarts repeatedly 1 time every hour (more or less).

Please can anyone help me with this error?

---

<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:** [1 June 2023 14:37 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/2 "2023-06-01T14:37:19Z")

</div>

There have been problems reported regularly with aedes node. You would almost certainly be better to install mosquito. It is faster, more feature rich, and solid. It is easy to install.

---

<div class="post-metadata">

**Author:** ![carflomi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carflomi/32/45646_2.png) [@carflomi](https://discourse.nodered.org/u/carflomi)\
**Post date:** [2 June 2023 04:56 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/3 "2023-06-02T04:56:37Z")

</div>

Thank you @Colin  
But I have a question, is there a node for mosquito in node-red? I found a node (node-red-contrib-mqtt-broker), but I can't see it in the node palette.  
Or are you suggesting that I install mosquito on the PC that contains node-red?

---

<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:** [2 June 2023 06:24 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/4 "2023-06-02T06:24:50Z")

</div>

> [@carflomi](#):
>
> are you suggesting that I install mosquito on the PC that contains node-red?

Yes. Assuming that is where you want it.

---

<div class="post-metadata">

**Author:** ![carflomi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carflomi/32/45646_2.png) [@carflomi](https://discourse.nodered.org/u/carflomi)\
**Post date:** [5 June 2023 06:59 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/5 "2023-06-05T06:59:53Z")

</div>

I try this way

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 June 2023 08:53 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/6 "2023-06-05T08:53:34Z")

</div>

> [@carflomi](#):
>
> Or are you suggesting that I install mosquito on the PC that contains node-red?

It depends what you are using MQTT for, but it might be an advantage to run Mosquitto and indeed Node-red on a computer that you are happy to have running 24 hours a day. For me the perfect platform is a Raspberry Pi.

---

<div class="post-metadata">

**Author:** ![maxwellhadley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxwellhadley/32/7827_2.png) [@maxwellhadley](https://discourse.nodered.org/u/maxwellhadley)\
**Post date:** [5 June 2023 11:21 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/7 "2023-06-05T11:21:02Z")

</div>

It’s not for everyone, but if you are using a FireBrick router/firewall, recent software updates have added a basic MQTT broker. It fits in nicely with the firewalling, letting you do things like allowing access from one specific Internet address

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 August 2023 11:21 UTC](https://discourse.nodered.org/t/problem-maximum-call-stack-size-exceeded-using-node-red-contrib-aedes/78868/8 "2023-08-04T11:21:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
