I received this message when the user with whom I logged in did not have access to the topic I was trying to subscribe to.
The simplest solution is to make sure that the user to whom the MQTT client connects has permission to read this topic if the client subscribes. If the client is trying to publish, make sure that the user has permission to write to this topic.
If you have already added the necessary permissions, make sure that you typed the topic name correctly.
source share