# Mikrotik API doesn't accept reply !empty

**URL:** <https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297>\
**Category:** Hardware\
**Created:** [27 March 2025 10:55 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297 "2025-03-27T10:55:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dasinho7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dasinho7/32/99778_2.png) [@Dasinho7](https://discourse.nodered.org/u/Dasinho7)\
**Post date:** [27 March 2025 10:55 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297/1 "2025-03-27T10:55:23Z")

</div>

Hi,  
I've recently updated my router OS to 7.18 and since the update has been performed I'm running an issue on NodeRed where it breaks it when the reply doesn't have data to reply.

I found the below on Mikrotik API docs.

_Replies of commands which do not have any data to reply with, begin with !empty (introduced in RouterOS 7.18);_

Anyone knows if it can be resolved or if it required NodeRed update to include this change on a next release.

Thank for your help.  
Fred

---

<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:** [27 March 2025 10:57 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297/2 "2025-03-27T10:57:24Z")

</div>

Hi @Dasinho7

What are you using in Node-RED to interact with the Mikrotik API? Are you using the built-in HTTP Rquest node, or a contib node from the community that you've installed?

---

<div class="post-metadata">

**Author:** ![Dasinho7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dasinho7/32/99778_2.png) [@Dasinho7](https://discourse.nodered.org/u/Dasinho7)\
**Post date:** [27 March 2025 12:37 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297/3 "2025-03-27T12:37:31Z")

</div>

Hi @knolleary  
I'm using Mikrotik node yes to send an API Raw command adding the command in payload. (see below an example of command which work under RouterOS 7.16.2 and block under 7.18.2.

msg.payload = ["/interface/bridge/port/print",  
"?=interface=VLAN101"]  
return msg;

---

<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:** [27 March 2025 13:04 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297/4 "2025-03-27T13:04:23Z")

</div>

Which specific node are you using? There are 3 listed on [flows.nodered.org](http://flows.nodered.org)

- [node-red-contrib-mikrotik](https://flows.nodered.org/node/node-red-contrib-mikrotik)
- [node-red-contrib-mikrotik2](https://flows.nodered.org/node/node-red-contrib-mikrotik2)
- [node-red-contrib-mikrotik3](https://flows.nodered.org/node/node-red-contrib-mikrotik3)

Once you know which one you may need to raise an issue against the node to have it updated to match the latest MikroTik firmware.

The first in the list appears to have been updated most recently, but even that was over 3.5 years ago and the GitHub repo for the one ending in mikrotik3 points to the same place the mikrotik2 does.

All 3 appear to use the node-routeos package, which was last updated 4 years ago and is now marked as deprecated

---

<div class="post-metadata">

**Author:** ![Dasinho7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dasinho7/32/99778_2.png) [@Dasinho7](https://discourse.nodered.org/u/Dasinho7)\
**Post date:** [27 March 2025 14:34 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297/5 "2025-03-27T14:34:56Z")

</div>

Hi @hardillb

Thank you for your reply, I'm using node-red-contrib-mikrotik 0.7.0, I raised the issue on GitHub.  
Thanks for the guidance.

---

<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:** [26 May 2025 14:35 UTC](https://discourse.nodered.org/t/mikrotik-api-doesnt-accept-reply-empty/96297/6 "2025-05-26T14:35:38Z")

</div>

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