AndreasReitberger / KlipperRestApiSharp

A C# based library to communicate with a klipper using Moonraker as WebApi base.
https://andreas-reitberger.de/datenbanken-softwareloesungen/nugets/klipperrestapisharp/
Apache License 2.0
14 stars 2 forks source link

Exception on `MoonrakerClient.GetGcodeLargestThumbnailImageAsync` if no `Thumbnails` found #71

Closed AndreasReitberger closed 1 year ago

AndreasReitberger commented 1 year ago

Stacktrace:

System.Linq.OrderedEnumerable`2[TElement,TKey]
System.Linq.OrderedEnumerable`2[TElement,TKey]..ctor (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IComparer`1[T] comparer, System.Boolean descending, System.Linq.OrderedEnumerable`1[TElement] parent) <0x106ea7e60 + 0x001a0> in <112d715759634cb18dc70888cd90afca#9352688d69c41510c69e1f1377836073>:0
System.Linq
Enumerable.OrderByDescending[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector)
AndreasReitberger.API.Moonraker
MoonrakerClient.GetGcodeLargestThumbnailImageAsync (AndreasReitberger.API.Moonraker.Models.KlipperGcodeMetaResult gcodeMeta, System.Int32 timeout)
AndreasReitberger.API.Moonraker
MoonrakerClient.RefreshGcodeMetadataAsync (System.String fileName)