-
Notifications
You must be signed in to change notification settings - Fork 135
Problem running on Blazor Preview #39
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
Comments
Blazor its an untested framework for this. I will take a look, and try to fix the issue. But it probably wont be fast :( |
Yeah, no problem, just wanted to let you know in case its an issue with Mono which will persist after Blazor is released, or used currently by someone using Xamarin. |
I just ran into this as well. Totally understand, not here to make pressure. Issue seems to be only in the DeserializeObject<>, not the non-generic variant (fundamental issue is the Json.NET library) |
Specifcally the issue seems to be using CamelCaseResovler. @luetm If you use Blazor, you could use the built in JsonUtil class to de-serialize to classes that use the json case instead of .net casing. |
@chanan Thanks for the pointer! We wanted to test if any* .NET standard libaries work in there, but for now we have the impression that almost nothing works without tinkering and adjusting. The underlying issue seems to be explained here: https://github.com/aspnet/Blazor/issues/370 |
@luetm Thanks for the link! Yes, same, wanted to use external libraries, but for now till its fixed, just doing the POST myself and using the internal JsonUtil work around. Hopefully it will be fixed in Blazor soon. |
Guys can you try it again with Blazor 0.3.0 and our latest release? |
related to mono/mono#7839 |
Hi,
I ran the same exact code in a console app (.net Core 2.1.300-preview2-008533) and as a Blazor App (Preview 0.2.0). Console worked fine, but in Blazor:
WASM: Newtonsoft.Json.JsonSerializationException: Error getting value from 'Query' on 'GraphQL.Common.Request.GraphQLRequest'. ---> System.NullReferenceException: Object reference not set to an instance of an object.
Needless to say Query wasn't null and I tried with postQueryAsync as well to verify.
I am guessing that the difference might be that Blazor runs on Mono.
The text was updated successfully, but these errors were encountered: