You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors on basic operations like one-shot publishing lead to a corresponding exit code != 0, so i can use MQTT cli in scripts and assert proper exit codes.
Actual behavior
MQTT CLI always exits with code 0, even when connection to the broker fails completely
I have the same issue, I have a broker running locally (using docker-swarm). I manage to connect to the broker using the mqtt-cli (and the client connection is also visible from the broker web page). If I try to publish a message nothing happens: the message is not sent to the broker (I can see no logging even when TRACE level is enabled) and the returned code is 0 without any error. Is there at least somewhere where we can see the error from client side?
Expected behavior
Errors on basic operations like one-shot publishing lead to a corresponding exit code != 0, so i can use MQTT cli in scripts and assert proper exit codes.
Actual behavior
MQTT CLI always exits with code 0, even when connection to the broker fails completely
To Reproduce
Steps
Run a basic command like
when no broker is running, followed by a
echo $?
to check the exit code, which will be 0 even if the connection was refused and no publish was made.Reproducer code
N/A
Details
The text was updated successfully, but these errors were encountered: