# Node red issue when inject message, the MQTT publish node disconnect

**URL:** https://discourse.nodered.org/t/node-red-issue-when-inject-message-the-mqtt-publish-node-disconnect/4791
**Category:** General
**Created:** [12 November 2018 11:01 UTC](https://discourse.nodered.org/t/node-red-issue-when-inject-message-the-mqtt-publish-node-disconnect/4791 "2018-11-12T11:01:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aimansaufi](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aimansaufi](https://discourse.nodered.org/u/aimansaufi)
#### Post date: [12 November 2018 11:01 UTC](https://discourse.nodered.org/t/node-red-issue-when-inject-message-the-mqtt-publish-node-disconnect/4791/1 "2018-11-12T11:01:13Z")

</div>

i have a issue when i'm trying inject the node, the MQTT publish node( the broker that i'm using: [[io.adafruit.com](http://io.adafruit.com)]) will always become disconnected and the data is not been updated into the my adafruit feeds . I also tried it using node red fred sensetecnic but its still give me a same problem .So, can i know why this thing happen and do you have any solution for that?. Thank you.  
 ![mqtt%20server](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f64d725d3ccf463cf7cd70056d8e7b654fe1899b.png)

---

<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: [12 November 2018 11:04 UTC](https://discourse.nodered.org/t/node-red-issue-when-inject-message-the-mqtt-publish-node-disconnect/4791/2 "2018-11-12T11:04:43Z")

</div>

If it gets disconnected when you try to publish, that suggests you are trying to publish to a topic you are not allowed to use.

The valid topic structures are documented here: [https://learn.adafruit.com/adafruit-io/mqtt-api#topics-15-4](https://learn.adafruit.com/adafruit-io/mqtt-api#topics-15-4)

---

<div class="post-metadata">

### Author: ![aimansaufi](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aimansaufi](https://discourse.nodered.org/u/aimansaufi)
#### Post date: [12 November 2018 11:19 UTC](https://discourse.nodered.org/t/node-red-issue-when-inject-message-the-mqtt-publish-node-disconnect/4791/3 "2018-11-12T11:19:35Z")

</div>

i already change the topic but it still give me the same problem. Is it this issue occur because of the broker server that i'm currently using?.

---

<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: [12 November 2018 12:39 UTC](https://discourse.nodered.org/t/node-red-issue-when-inject-message-the-mqtt-publish-node-disconnect/4791/4 "2018-11-12T12:39:21Z")

</div>

Are you using a free or paid account at adafruit?  
Have you ever been successful at send/receiving a message?  
what does your topic lookalike (xxx out your username)

What platform are you running NR on?  
If it is a Pi, have you thought about installing MQTT on it?
