CyberDNS / Lupusec2Mqtt

Lupusec Alarm System to Mqtt
MIT License
11 stars 5 forks source link

Unhandled exception in poller #25

Closed krim404 closed 2 years ago

krim404 commented 2 years ago

This is just a placeholder till i have more informations

[23:26:18 INF] Lupusec2Mqtt is starting up... {}
[23:26:18 INF] Polling... (Every 5th cycle is logged) {"SourceContext": "Lupusec2Mqtt.Lupusec.PollingHostedService"}
Unhandled exception. System.ArgumentNullException: String reference not set to an instance of a String. (Parameter 's')
   at System.Text.Encoding.GetBytes(String s)
   at Lupusec2Mqtt.Lupusec.PollingHostedService.PublishPowerSwitches() in /src/Lupusec2Mqtt/src/Lupusec2Mqtt/Lupusec/PollingHostedService.cs:line 134
   at Lupusec2Mqtt.Lupusec.PollingHostedService.DoWork(Object state) in /src/Lupusec2Mqtt/src/Lupusec2Mqtt/Lupusec/PollingHostedService.cs:line 115
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
krim404 commented 2 years ago

Seems like problem is only occuring in the non edge version. close