Could someone confirm an apparent bug that I am seeing please?
Starting with an empty flows file, configure a single MQTT In node (subscribing to a fixed topic) and a broker and deploy. Check it is working.
Change the topic subscribed to and do a partial deploy. On two systems here I am seeing that it disconnects and does not reconnect.
A Restart Flows fixes it.
If a second MQTT In node, using the same broker config, is added then the problem does not occur.
I am using node-red 3.0.2 and see this with node.js 16 and 18.
Confirmed on an alternate installer install
Indeed, doing exaclty like you said results in node not connecting after the partial deploy. Now, when i configure something as the close message this issue will not happen. Same for the will message.
Thanks both for testing, I will submit an issue.
It is amazing how a fundamental bug like that can go unnoticed, presumably for months if not longer.
Well - its a fairly niche edge case
I suspect beginners will have fallen over it in their initial fiddling with MQTT but just assumed it was something they were doing wrong, then as soon as you add another MQTT node it goes away.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.