MQTTX icon indicating copy to clipboard operation
MQTTX copied to clipboard

[Bug] Connection fails after configuring Will Message

Open objectboy2016 opened this issue 3 months ago • 1 comments

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.

objectboy2016 avatar Sep 30 '25 01:09 objectboy2016

Thank you for reporting this issue. To help us identify the root cause of the connection failure, could you please provide the following information?

  1. Broker logs: The mosquitto logs when the connection fails (you can enable verbose logging by adding log_type all to mosquitto.conf)

  2. MQTTX error message: The error message or logs shown in MQTTX when the connection fails

  3. 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.)

  4. 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!

ysfscream avatar Sep 30 '25 06:09 ysfscream