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
✔️ Bug exists Release Version 1.2.5 (Master Branch)
❔ Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
❔ Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
I have a multi-broker setup, and I'm passing multiple URIs to the library via MqttConnectionOptions's setServerURIs in the connect method.
All MqttAsyncClient constructors require a single URI (not adequato to my use case), which is then ignored if setServerURIs is used. However this address is validated and an exception is throw if an empty string or a null is passed.
java.lang.IllegalArgumentException: missing scheme in broker URI:
at org.eclipse.paho.mqttv5.client.internal.NetworkModuleService.validateURI(NetworkModuleService.java:61)
at org.eclipse.paho.mqttv5.client.MqttAsyncClient.<init>(MqttAsyncClient.java:573)
at org.eclipse.paho.mqttv5.client.MqttAsyncClient.<init>(MqttAsyncClient.java:439)
As a workaround I can pass a fake address to the constructor, but it's ugly and confusing.
The text was updated successfully, but these errors were encountered:
✔️ Bug exists Release Version 1.2.5 (Master Branch)
❔ Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
❔ Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
I have a multi-broker setup, and I'm passing multiple URIs to the library via
MqttConnectionOptions
'ssetServerURIs
in theconnect
method.All
MqttAsyncClient
constructors require a single URI (not adequato to my use case), which is then ignored ifsetServerURIs
is used. However this address is validated and an exception is throw if an empty string or a null is passed.As a workaround I can pass a fake address to the constructor, but it's ugly and confusing.
The text was updated successfully, but these errors were encountered: