Azure / azure-iot-cli-extension

Azure IoT extension for Azure CLI
Other
82 stars 64 forks source link

[bug] az iot central diagnostics stops tracking events after a while #635

Closed mmacagno closed 1 year ago

mmacagno commented 1 year ago

Describe the bug The "az iot central diagnostics" will stop tracking events after 30 or so minutes.

To Reproduce Steps to reproduce the behavior:

  1. launch az iot central filtering on a specific device.

iot central diagnostics monitor-events --app-id {my-app-id} --properties all --device-id {my-device-id}

  1. observe the flow of events

Expected behavior As the device keeps sending messages, the corresponding json events should flow on the console

Actual The events stop flowing. No errors are displayed. If I stop and restart the monitor, the events will start flowing again.

I confirmed that the device is sending events, receiving OK_EMPTY responses, and the IOT Central app is showing the device connected and events being received.

image

Environment:

$ az version { "azure-cli": "2.34.1", "azure-cli-core": "2.34.1", "azure-cli-telemetry": "1.0.6", "extensions": { "azure-iot": "0.13.0", "interactive": "0.4.5" } }

HangyiWang commented 1 year ago

check in

HangyiWang commented 1 year ago

Try to repro this. But I can receive continuous event even after 2 hrs.

And I'm using newer version: { "azure-cli": "2.39.0", "azure-cli-core": "2.39.0", "azure-cli-telemetry": "1.0.6", "extensions": { "azure-iot": "0.18.2" } }

Could you please try update the CLI? @mmacagno

mmacagno commented 1 year ago

ok testing now @HangyiWang

mmacagno commented 1 year ago

@HangyiWang the updated CLI no longer manifests the issue. Closing. thanks