gebirgslok / rebrickablesharp Goto Github PK
View Code? Open in Web Editor NEWEasy-to-use C# client for the Rebrickable (LEGO) API.
License: MIT License
Easy-to-use C# client for the Rebrickable (LEGO) API.
License: MIT License
Hi there,
i was using your Rebrickable Wrapper in a xamarinforms app to do my inventory.
The app' s targetframework is netstandard 2.1 so i hoped it would work but it crashes on deserializing the response.
Here is the stacktrace i got:
System.ArgumentNullException: [NullGuard] Cannot set the value of property 'TResult[] RebrickableSharp.Client.PagedResponse1::Results()' to null. Parameter name: value at RebrickableSharp.Client.PagedResponse
1[TResult].set_Results (TResult[] value) [0x00008] in :0
at System.Text.Json.ReflectionMemberAccessor+<>c__DisplayClass12_02[TClass,TProperty].<CreatePropertySetter>b__0 (System.Object obj, TProperty value) [0x00000] in <996dc3e1eb544ee0861c0639083a927e>:0 at System.Text.Json.JsonPropertyInfoCommon
4[TClass,TDeclaredProperty,TRuntimeProperty,TConverter].SetValueAsObject (System.Object obj, System.Object value) [0x0001d] in <996dc3e1eb544ee0861c0639083a927e>:0
at System.Text.Json.ReadStackFrame.CreateEnumerableValue (System.Text.Json.Utf8JsonReader& reader, System.Text.Json.ReadStack& state) [0x00070] in <996dc3e1eb544ee0861c0639083a927e>:0
at System.Text.Json.JsonSerializer.HandleStartArray (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Utf8JsonReader& reader, System.Text.Json.ReadStack& state) [0x000f8] in <996dc3e1eb544ee0861c0639083a927e>:0
at System.Text.Json.JsonSerializer.ReadCore (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Utf8JsonReader& reader, System.Text.Json.ReadStack& readStack) [0x0013e] in <996dc3e1eb544ee0861c0639083a927e>:0
at System.Text.Json.JsonSerializer.ReadCore (System.Type returnType, System.Text.Json.JsonSerializerOptions options, System.Text.Json.Utf8JsonReader& reader) [0x00020] in <996dc3e1eb544ee0861c0639083a927e>:0
at System.Text.Json.JsonSerializer.ParseCore (System.String json, System.Type returnType, System.Text.Json.JsonSerializerOptions options) [0x00032] in <996dc3e1eb544ee0861c0639083a927e>:0
at System.Text.Json.JsonSerializer.Deserialize[TValue] (System.String json, System.Text.Json.JsonSerializerOptions options) [0x0000e] in <996dc3e1eb544ee0861c0639083a927e>:0
at RebrickableSharp.Client.RebrickableClient.ExecuteRequest[TResponse] (System.String url, System.Net.Http.HttpMethod httpMethod, System.Threading.CancellationToken cancellationToken) [0x0011f] in :0
at RebrickableSharp.Client.RebrickableClient.GetPartsAsync (System.Int32 page, System.Int32 pageSize, System.Boolean includeDetails, System.String bricklinkId, System.String partNumber, System.Collections.Generic.IEnumerable1[T] partNumbers, System.Nullable
1[T] categoryId, System.String brickOwlId, System.String legoId, System.String lDrawId, System.String searchTerm, System.Threading.CancellationToken cancellationToken) [0x00198] in :0
at MyBricksApp.Features.Parts.PartsViewModel.InitializeAsync (Prism.Navigation.INavigationParameters parameters) [0x00046] in D:\Repos\MyBricks\src\MyBricksApp\MyBricksApp\Features\Parts\PartsViewModel.cs:19
at Prism.Common.PageUtilities+<>c__DisplayClass8_0.b__1 (Prism.Navigation.IInitializeAsync v) [0x00028] in //src/Forms/Prism.Forms/Common/PageUtilities.cs:137
at Prism.Common.PageUtilities.InvokeViewAndViewModelActionAsync[T] (System.Object view, System.Func2[T,TResult] action) [0x000c9] in /_/src/Forms/Prism.Forms/Common/PageUtilities.cs:38 at Prism.Common.PageUtilities.OnInitializedAsync (System.Object page, Prism.Navigation.INavigationParameters parameters) [0x0005d] in /_/src/Forms/Prism.Forms/Common/PageUtilities.cs:137 at Prism.Navigation.PageNavigationService.OnInitializedAsync (Xamarin.Forms.Page toPage, Prism.Navigation.INavigationParameters parameters) [0x00034] in /_/src/Forms/Prism.Forms/Navigation/PageNavigationService.cs:778 at Prism.Navigation.PageNavigationService.DoNavigateAction (Xamarin.Forms.Page fromPage, System.String toSegment, Xamarin.Forms.Page toPage, Prism.Navigation.INavigationParameters parameters, System.Func
1[TResult] navigationAction, System.Action1[T] onNavigationActionCompleted) [0x000db] in /_/src/Forms/Prism.Forms/Navigation/PageNavigationService.cs:764 at Prism.Navigation.PageNavigationService.ProcessNavigationForRootPage (System.String nextSegment, System.Collections.Generic.Queue
1[T] segments, Prism.Navigation.INavigationParameters parameters, System.Nullable1[T] useModalNavigation, System.Boolean animated) [0x00165] in /_/src/Forms/Prism.Forms/Navigation/PageNavigationService.cs:521 at Prism.Navigation.PageNavigationService.ProcessNavigation (Xamarin.Forms.Page currentPage, System.Collections.Generic.Queue
1[T] segments, Prism.Navigation.INavigationParameters parameters, System.Nullable1[T] useModalNavigation, System.Boolean animated) [0x00138] in /_/src/Forms/Prism.Forms/Navigation/PageNavigationService.cs:404 at Prism.Navigation.PageNavigationService.NavigateInternal (System.Uri uri, Prism.Navigation.INavigationParameters parameters, System.Nullable
1[T] useModalNavigation, System.Boolean animated) [0x000f9] in //src/Forms/Prism.Forms/Navigation/PageNavigationService.cs:359
My App's repo is public , feel free to reproduce the exception -> https://github.com/FynnSchapdick/MyBricks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.