Open OriNachum opened 5 years ago
Did this only occur once or are you able to reproduce it?
Will try and reproduce. Also having trouble using OnAsync/OffAsync/SetPower with duration and investigating this. I don't mind closing and re-open if I encounter it again
I'm able to reproduce on debug. Maybe it's .net core issue? I suspect it's an issue with multiple requests and async-await issue. I'm able to reproduce intermiteddly (I scan my network for lights, and then send a on/off request to one of them) Also, I put debug on Request.GetData return line (190)
I wasn't able to reproduce this exception using a .NET Core console application. I've opened issue #3 for the duration parameter not working.
I got an exception today when trying to get GetStateAsync. I asses this happend due line 75 in Communicator. Will take further review later on.
Relevant part of stacktrace: System.InvalidCastException: Unable to cast object of type 'Lifx.Communication.Responses.Payloads.ResponsePayload' to type 'Lifx.Communication.Responses.Payloads.StateResponsePayload'. at Lifx.Communication.Communicator.CommunicateAsync[TResponsePayload](Request request, CancellationToken cancellationToken) at Lifx.Light.GetStateAsync(CancellationToken cancellationToken)