You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I seem to be getting this exception every few seconds when updating my lights (Hue Play). I'm just using the example code for now, and they do update correctly if I ignore the exception, but it would be good to find out the reason:
Color color = dataSet[0].color;
var rgbColorHue = new HueApi.ColorConverters.RGBColor(color.R, color.G, color.B);
// Create the light update command
var req = new UpdateLight()
.TurnOn()
.SetColor(rgbColorHue);
var result = _client.UpdateLightAsync(_light.Id, req).Result;
I'm fairly confident the error isn't coming from my codebase:
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. ('<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.)
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.get_Result() at Devices.Hue.HueUpdateQueue.Update(ReadOnlySpan1 dataSet) in
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
Inner Exception 2:
JsonReaderException: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
The text was updated successfully, but these errors were encountered:
Unable to reproduce this. Can you check what data your bridge returns by using a tool like Telerik Fiddler? It might return something else than json.
Maybe you're sending too many requests and it's better to use the Entertainment API?
Hi there,
I seem to be getting this exception every few seconds when updating my lights (Hue Play). I'm just using the example code for now, and they do update correctly if I ignore the exception, but it would be good to find out the reason:
I'm fairly confident the error isn't coming from my codebase:
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. ('<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.)
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task
1.get_Result() at Devices.Hue.HueUpdateQueue.Update(ReadOnlySpan
1 dataSet) inThis exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
Inner Exception 2:
JsonReaderException: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
The text was updated successfully, but these errors were encountered: