KoenZomers / RingApi

Api in .NET 6 to communicate with the Ring Doorbell services
38 stars 19 forks source link

Issue Getting Ring Devices #3

Closed TylerEspo closed 4 years ago

TylerEspo commented 4 years ago

Error converting value "unknown" to type 'KoenZomers.Ring.Api.Entities.DeviceStatus'. Path 'stickup_cams[0].led_status', line 1, position 7755.'

static void Main(string[] args)
        {
            Task.Run(() =>
            {
                Begin();
            });

            Console.ReadLine();
        }

        static async void Begin()
        {
            var session = new Session("XXXXX", "XXXXX");

            await session.Authenticate();

            var devices = await session.GetRingDevices();

            foreach (var device in devices.StickupCams)
            {
                Console.WriteLine(device.Description);
            }
        }
KoenZomers commented 4 years ago

Thanks for reporting this @TylerEspo. Can you try it again with version 0.4.0.3 which applies less strict JSON parsing to see if this resolves your case as well?

KoenZomers commented 4 years ago

Closing issue as no response has been received