Tibber.SDK.NET icon indicating copy to clipboard operation
Tibber.SDK.NET copied to clipboard

RealTimeMeasurementObserver terminates randomly sometimes

Open maf-soft opened this issue 7 months ago • 1 comments

About once a day, I receive an OnCompleted() event, sometimes preceded by an OnError() event and sometimes not.

In the code, I can see that there is a _streamRestartTimer, a CheckDataStreamAlive and a ResubscribeStream. I haven't checked exactly what these do, but should I be able to rely on them? Do they need fixing, or is it intended that I need external restart code too? If so, do you have any suggestions on how to do this?

maf-soft avatar Jul 14 '25 10:07 maf-soft

Hi! The CheckDataStreamAlive + ResubscribeStream implementation is intended to be sufficient for getting the stream back up in case the connection got dropped e.g. due to a networking failure. Receiving a complete however feels a bit odd. If you send email address you used to signup in Tibber I can check logs to see if there is anything suspicious?

toini avatar Jul 17 '25 12:07 toini