# I got an error related to mqtt subscription

**URL:** https://discourse.nodered.org/t/i-got-an-error-related-to-mqtt-subscription/43162
**Category:** General
**Created:** [25 March 2021 04:05 UTC](https://discourse.nodered.org/t/i-got-an-error-related-to-mqtt-subscription/43162 "2021-03-25T04:05:23Z")
**Posts on this page:** 1
**Showing post:** 9

<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: [25 March 2021 13:46 UTC](https://discourse.nodered.org/t/i-got-an-error-related-to-mqtt-subscription/43162/9 "2021-03-25T13:46:33Z")

</div>

Clear out the Client ID in the mqtt config. It is not necessary to provide an ID, node-red will generate a random one for you. It should only be there in one config node. If you find it in multiple config nodes that that is the problem. You should just be using one config node for all mqtt nodes.

See what the log now shows.

For the future, if posting logs please copy/paste the text rather than a screenshot, it can be very difficult to read screenshots. When pasting use the technique described in this post to stop the forum from messing with the text - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/i-got-an-error-related-to-mqtt-subscription/43162)._
