Git Product home page Git Product logo

rebrickablesharp's People

Contributors

gebirgslok avatar stephanstapel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rebrickablesharp's Issues

ArgumentNullException while setting the result of PagedResponse

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.PagedResponse1[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.JsonPropertyInfoCommon4[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.Nullable1[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.Func1[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.Queue1[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.Queue1[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.Nullable1[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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.