[Bug] Connection fails after configuring Will Message
What did I do
The locally deployed broker is mosquitto 2.0.22. I can connect successfully by configuring the Will Message via mqttfx, but when I configure the Will Message in mqttx, the connection fails. Changing the broker address to broker.emqx.io has no issues.
What happened
mqttx failed to connect
Expected
What is the expected result.
Environment
- OS: windows 10
- MQTTX version, e.g. v1.12.0
More detail
More detail include log information or screenshot
This issue was automatically translated from Chinese.
Thank you for reporting this issue. To help us identify the root cause of the connection failure, could you please provide the following information?
-
Broker logs: The mosquitto logs when the connection fails (you can enable verbose logging by adding
log_type allto mosquitto.conf) -
MQTTX error message: The error message or logs shown in MQTTX when the connection fails
-
Will Message configuration details: Your Will Message settings (Topic, Payload, QoS, Retain, and if using MQTT 5.0, properties like Content Type, Response Topic, etc.)
-
Comparison with mqttfx: What Will Message settings did you use in mqttfx that successfully connected?
We're not yet certain if there are differences in how mosquitto and EMQX handle Will Message validation. Since you mentioned that connecting to broker.emqx.io works fine but local mosquitto 2.0.22 fails, the broker logs would be crucial for analyzing this difference.
Thank you!