iotblackbelt / node-red-contrib-azure-iot-device

Azure IoT Device node for Node-Red
MIT License
21 stars 18 forks source link

Duplicate Messages #37

Open Shiny380 opened 1 year ago

Shiny380 commented 1 year ago

I am getting duplicate messages happening after some period of time. I have noticed this on several different instances. Here are the system logs (edited out payloads and Id's) Unfortunately it had been running for a long time so I cannot go back far enough in the logs to see if any errors could have triggered it. I also cannot find anything about whether this is some retry feature or if it is actually a bug. A service restart of nodered resolved it however we have a few critical devices running through this where duplicates are causing havoc.

Any info on if this is a bug and if any one else is experiencing this

sudo journalctl -u nodered.service -f
-- Journal begins at Wed 2023-08-09 05:27:01 AEST. --
Aug 09 08:50:00 controller Node-RED[493]: 9 Aug 08:50:00 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:50:00.003Z","gatewayID":"TMP-ID",...}
Aug 09 08:50:00 controller Node-RED[493]: 9 Aug 08:50:00 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:50:00.003Z","gatewayID":"TMP-ID",...}
Aug 09 08:50:22 controller Node-RED[493]: 9 Aug 08:50:22 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:50:21.961Z","gatewayID":"TMP-ID","rssi":-100,...}
Aug 09 08:50:22 controller Node-RED[493]: 9 Aug 08:50:22 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:50:21.961Z","gatewayID":"TMP-ID","rssi":-100,...}
Aug 09 08:50:24 controller Node-RED[493]: 9 Aug 08:50:24 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:50:23.643Z","gatewayID":"TMP-ID","rssi":-100,...}
Aug 09 08:50:24 controller Node-RED[493]: 9 Aug 08:50:24 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:50:23.643Z","gatewayID":"TMP-ID","rssi":-100,...}
Aug 09 08:55:22 controller Node-RED[493]: 9 Aug 08:55:22 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:55:21.959Z","gatewayID":"TMP-ID","rssi":-99,...}
Aug 09 08:55:22 controller Node-RED[493]: 9 Aug 08:55:22 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:55:21.959Z","gatewayID":"TMP-ID","rssi":-99,...}
Aug 09 08:55:24 controller Node-RED[493]: 9 Aug 08:55:24 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:55:23.642Z","gatewayID":"TMP-ID","rssi":-100,...}
Aug 09 08:55:24 controller Node-RED[493]: 9 Aug 08:55:24 - [info] [azureiotdevice:...] TMP-ID -> Telemetry sent: {"timestampUTC":"2023-08-08T22:55:23.642Z","gatewayID":"TMP-ID","rssi":-100,...}