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
With npm package MQTT.js there are no issues with any version of Mosquitto
With Nuget package MQTTnet I cannot create a client connection to my broker anymore after I upgraded Mosquitto from 2.0.11 to 2.0.12, the same is true for 2.0.13.
My configuration of the broker is very simple, I've modified only two options in the configuration file
listener 1883
allow_anonymous true
Works fine for months. I've tested the Mosquitto broker 2.0.13 on serveral machines (Raspberry Pi2 ARMv7 32bit, Raspberry Pi 4 ARMv8 64bit, Windows 64bit with 32bit and 64bit binaries of the broker). The result is always the same, while everything works as expected with MQTT.js I get the following exception with MQTTnet:
MQTTnet.Adapter.MqttConnectingFailedException: Connecting with MQTT server failed (ClientIdentifierNotValid).
at MQTTnet.Client.MqttClient.AuthenticateAsync(IMqttChannelAdapter channelAdapter, MqttApplicationMessage willApplicationMessage, CancellationToken cancellationToken)
at MQTTnet.Client.MqttClient.ConnectAsync(IMqttClientOptions options, CancellationToken cancellationToken)
at MQTTnet.Client.MqttClient.ConnectAsync(IMqttClientOptions options, CancellationToken cancellationToken)`
Even if I set the ClientID manually it doesn't help. The only thing that works for me is to downgrade Mosquitto to version 2.0.11 again. This is easy on Windows but a problem on my rolling release Linux distribution Arch Linux.
Because I'm unsure if this is a bug in Mosquitto or MQTTnet I've opened an issue there as well: #1290
The text was updated successfully, but these errors were encountered:
2.0.11
to2.0.12
, the same is true for2.0.13
.My configuration of the broker is very simple, I've modified only two options in the configuration file
listener 1883 allow_anonymous true
Works fine for months. I've tested the Mosquitto broker 2.0.13 on serveral machines (Raspberry Pi2 ARMv7 32bit, Raspberry Pi 4 ARMv8 64bit, Windows 64bit with 32bit and 64bit binaries of the broker). The result is always the same, while everything works as expected with
MQTT.js
I get the following exception withMQTTnet
:The client ID is not set by me but by
MQTTnet
internally (MqttClientOptions.cs, Line16) withEven if I set the ClientID manually it doesn't help. The only thing that works for me is to downgrade Mosquitto to version 2.0.11 again. This is easy on Windows but a problem on my rolling release Linux distribution Arch Linux.
Because I'm unsure if this is a bug in
Mosquitto
orMQTTnet
I've opened an issue there as well: #1290The text was updated successfully, but these errors were encountered: