# NodeRed with node-red-contrib-mikrotik will crash, when component is used after "split" module and execute in cycle

**URL:** <https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052>\
**Category:** General\
**Created:** [17 March 2025 08:24 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052 "2025-03-17T08:24:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaucode](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@klaucode](https://discourse.nodered.org/u/klaucode)\
**Post date:** [17 March 2025 08:24 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/1 "2025-03-17T08:24:08Z")

</div>

NodeRed with node-red-contrib-mikrotik will crash, when component is used after "split" module and execute in cycle:

```auto
node-red | 17 Mar 08:19:49 - [error] RosException: Timed out after 10 seconds
node-red | at Connector.onTimeout (/data/node_modules/node-routeros/dist/connector/Connector.js:188:30)
node-red | at Object.onceWrapper (node:events:632:28)
node-red | at Socket.emit (node:events:518:28)
node-red | at Socket._onTimeout (node:net:595:8)
node-red | at listOnTimeout (node:internal/timers:581:17)
node-red | at process.processTimers (node:internal/timers:519:7)

```

When mikrotik module is running once (not in cycle) it works. When it runs inside cycle, few iterations is working and then "mikrotik" module is goying to error, which will destoy whole instance of node-red.

I tried to use "catch" module to prevent crash node-red, but it didn't helped. I tried also close "msg" object in function after split before input into "mikrotik" module, but also it didnt helped.

Thanks a lot for an each help.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 March 2025 08:39 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/2 "2025-03-17T08:39:47Z")

</div>

Have tried rate limiting (delay node rate mode) or using a queuing node after the split?

---

<div class="post-metadata">

**Author:** ![klaucode](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@klaucode](https://discourse.nodered.org/u/klaucode)\
**Post date:** [17 March 2025 08:44 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/3 "2025-03-17T08:44:36Z")

</div>

Queuing node note, I'm goying to try

delay node rate mode - how can I make rate limiting?

---

<div class="post-metadata">

**Author:** ![klaucode](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@klaucode](https://discourse.nodered.org/u/klaucode)\
**Post date:** [17 March 2025 08:49 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/4 "2025-03-17T08:49:16Z")

</div>

I don't have queue in my modules "palette", you mean this module?

`node-red-contrib-simple-message-queue`

Thanks a lot @E1cid

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 March 2025 08:57 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/5 "2025-03-17T08:57:07Z")

</div>

The delay node has a rate mode check the dropdowns in the config.  
There are examples on this forum of how to set it up to queue messages. using msg.flush. Read the sidebar help text.

This node also queues [node-red-semaphore-plus (node) - Node-RED](https://flows.nodered.org/node/@marcus-j-davies/node-red-semaphore-plus)

---

<div class="post-metadata">

**Author:** ![klaucode](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@klaucode](https://discourse.nodered.org/u/klaucode)\
**Post date:** [17 March 2025 09:06 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/6 "2025-03-17T09:06:16Z")

</div>

@E1cid If you were a woman, I would kiss you 😃 It seems to be, that it helped! Thanks a lot for your help!

---

<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:** [15 June 2025 09:06 UTC](https://discourse.nodered.org/t/nodered-with-node-red-contrib-mikrotik-will-crash-when-component-is-used-after-split-module-and-execute-in-cycle/96052/7 "2025-06-15T09:06:58Z")

</div>

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