Azure-Samples / MqttApplicationSamples

Samples implementing common PubSub patterns for Edge and Cloud Brokers
MIT License
25 stars 25 forks source link

Response message missing MQTT property "__stat" when using EventGrid #97

Closed patilsnr closed 7 months ago

patilsnr commented 7 months ago

Repro steps:

  1. Set up an event grid as per https://github.com/Azure-Samples/MqttApplicationSamples/blob/main/Setup.md.
  2. Create namespaces, topic spaces, and bindings as per https://github.com/Azure-Samples/MqttApplicationSamples/tree/main/scenarios/getting_started.
  3. The following configuration throws Akri.Mqtt.AkriMqttException : response missing MQTT user property "__stat": image

Note that telemetry messages with this same configuration work, so it doesn't seem to be an error in terms of communication with EG. Azure portal shows that messages are reaching the broker successfully, but something seems to go awry in the handling sdk-side.

patilsnr commented 7 months ago

A guess as to why this happens is the same mqtt client being used causes the invoker to fire its own callback, which sends a message that doesn't include __stat.