-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidCastException In Communicator #2
Comments
Did this only occur once or are you able to reproduce it? |
Will try and reproduce. |
I'm able to reproduce on debug. Maybe it's .net core issue? |
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)
The text was updated successfully, but these errors were encountered: