-
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
[BUG] On Linux ARM getting JSON Exception with -list operation #7
Comments
Also getting the following on win x64 Retrieving all devices... Unhandled exception. System.Text.Json.JsonException: The JSON value could not be converted to System.Nullable |
Bit late, but if you're still interested in this, can you try it again with the latest version and see if it works well now? |
Thanks for the update, on version 1.3 I'm getting the following; PS C:\Users\Craig\Downloads\Ring> .\ring -list Ring Snapshot Download Tool v1.3.0.0 by Koen Zomers Using settings from C:\Users\Craig\Downloads\Ring\Settings.json GPT4 says; Sorry I'm a novice at this. I tried loading up in visual basic, but I couldn't find the relevant part of the code. |
I ran some tests and I think I have found the reason why it fails. Still running some tests. Will include it in the next release. |
…omString option. Should address issue KoenZomers/RingSnapshotDownload#7
Give it a try with 2.0.0.0 and see if it works now for you. |
Had this Json exeption today with 1.3, when doing a list after adding a spotlight cam, used 2.1.0.0 just for list and it worked fine. Due to my issue with authentification see my thread I'm using 1.3 for receiving the jpgs. |
Ok, now getting json exception with all verions starting 1.3 through 2.1.0.0: sing settings from /home/pi/Ring/New/Settings.json Abgebrochen Is there going to be another update? Seemed that all stopped working on March 8th in the morning... |
Describe the bug
Running on Linux ARM with -list action getting the following error:
Connecting to Ring services
(String[] args)Authenticating using refresh token from previous session
Retrieving all devices... Unhandled exception. System.Text.Json.JsonException: The JSON value could not be converted to System.Nullable
1[System.Int32]. Path: $.doorbots[0].battery_life | LineNumber: 0 | BytePositionInLine: 173. ---> System.InvalidOperationException: Cannot get the value of a token type 'String' as a number. at System.Text.Json.Utf8JsonReader.TryGetInt32(Int32& ) at System.Text.Json.Utf8JsonReader.GetInt32() at System.Text.Json.Serialization.Converters.Int32Converter.Read(Utf8JsonReader& , Type , JsonSerializerOptions ) at System.Text.Json.Serialization.Converters.NullableConverter
1.Read(Utf8JsonReader& , Type , JsonSerializerOptions )at System.Text.Json.Serialization.Metadata.JsonPropertyInfo
1.ReadJsonAndSetMember(Object , ReadStack& , Utf8JsonReader& ) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter
1.OnTryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , T& )at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , T& ) at System.Text.Json.Serialization.JsonCollectionConverter
2.OnTryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , TCollection& )at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , T& ) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo
1.ReadJsonAndSetMember(Object , ReadStack& , Utf8JsonReader& )at System.Text.Json.Serialization.Converters.ObjectDefaultConverter
1.OnTryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , T& ) at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& , Type , JsonSerializerOptions , ReadStack& , T& )at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& , JsonSerializerOptions , ReadStack& ) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& , Utf8JsonReader& , Exception ) at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& , JsonSerializerOptions , ReadStack& )at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 , JsonTypeInfo , Nullable
1 )at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan`1 , JsonTypeInfo )
at System.Text.Json.JsonSerializer.Deserialize[TValue](String , JsonSerializerOptions )
at KoenZomers.Ring.Api.Session.GetRingDevices()
at KoenZomers.Ring.SnapshotDownload.Program.Main(String[] args)
at KoenZomers.Ring.SnapshotDownload.Program.
Aborted
Expected behavior
Error should be handled with error handling, also should output contents of JSON object if error occurs to allow for fixing of issue.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: