Comments (5)
What is the rest of the callstack?
from fluxor.
blazor.webassembly.js:1 WASM: Unhandled exception rendering component:
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: Fluxor.Exceptions.StoreInitializationException: Store initialization error ---> System.NotSupportedException: The collection type 'Microsoft.Graph.IUserOwnedDevicesCollectionWithReferencesPage' on 'Microsoft.Graph.User.OwnedDevices' is not supported.
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonClassInfo.GetElementType (System.Type propertyType, System.Type parentType, System.Reflection.MemberInfo memberInfo, System.Text.Json.JsonSerializerOptions options) <0x356a580 + 0x0015a> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonClassInfo.CreateProperty (System.Type declaredPropertyType, System.Type runtimePropertyType, System.Type implementedPropertyType, System.Reflection.PropertyInfo propertyInfo, System.Type parentClassType, System.Text.Json.Serialization.JsonConverter converter, System.Text.Json.JsonSerializerOptions options) <0x3566820 + 0x0029a> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonClassInfo.AddProperty (System.Type propertyType, System.Reflection.PropertyInfo propertyInfo, System.Type classType, System.Text.Json.JsonSerializerOptions options) <0x355d960 + 0x00072> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonClassInfo..ctor (System.Type type, System.Text.Json.JsonSerializerOptions options) <0x3552278 + 0x00168> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializerOptions.GetOrAddClass (System.Type classType) <0x35442c0 + 0x00036> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonPropertyInfo.get_ElementClassInfo () <0x362d400 + 0x0002a> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.HandleObject (System.Text.Json.JsonPropertyInfo jsonPropertyInfo, System.Text.Json.JsonSerializerOptions options, System.Text.Json.Utf8JsonWriter writer, System.Text.Json.WriteStack& state) <0x3818be8 + 0x000d2> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.WriteObject (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Utf8JsonWriter writer, System.Text.Json.WriteStack& state) <0x3818858 + 0x000cc> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.Write (System.Text.Json.Utf8JsonWriter writer, System.Int32 originalWriterDepth, System.Int32 flushThreshold, System.Text.Json.JsonSerializerOptions options, System.Text.Json.WriteStack& state) <0x3582d50 + 0x000ec> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.WriteCore (System.Text.Json.Utf8JsonWriter writer, System.Object value, System.Type type, System.Text.Json.JsonSerializerOptions options) <0x33417f0 + 0x0008a> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.WriteCore (System.Text.Json.PooledByteBufferWriter output, System.Object value, System.Type type, System.Text.Json.JsonSerializerOptions options) <0x3340e60 + 0x00040> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.WriteCoreString (System.Object value, System.Type type, System.Text.Json.JsonSerializerOptions options) <0x3340a68 + 0x0003c> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at System.Text.Json.JsonSerializer.Serialize[TValue] (TValue value, System.Text.Json.JsonSerializerOptions options) <0x33406d0 + 0x0000c> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue] (System.String identifier, System.Threading.CancellationToken cancellationToken, System.Object[] args) <0x37e7fe0 + 0x001f6> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue] (System.String identifier, System.Object[] args) <0x37e7878 + 0x0005a> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Blazor.Web.ReduxDevTools.ReduxDevToolsInterop.InvokeFluxorDevToolsMethodAsync[TResult] (System.String identifier, System.Object[] args) <0x3a80008 + 0x0005c> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Blazor.Web.ReduxDevTools.ReduxDevToolsInterop.InitializeAsync (System.Collections.Generic.IDictionary`2[TKey,TValue] state) <0x3a7fd58 + 0x00056> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Blazor.Web.ReduxDevTools.ReduxDevToolsMiddleware.InitializeAsync (Fluxor.IStore store) <0x3a742d8 + 0x000e0> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Store.InitializeMiddlewaresAsync () <0x3a73a70 + 0x00100> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Store.ActivateStoreAsync () <0x3a6e240 + 0x000d4> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Store.InitializeAsync () <0x3a6dc48 + 0x000d4> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Blazor.Web.StoreInitializer.OnAfterRenderAsync (System.Boolean firstRender) <0x3a27950 + 0x00272> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: --- End of inner exception stack trace ---
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Fluxor.Blazor.Web.StoreInitializer.OnAfterRenderAsync (System.Boolean firstRender) <0x3a27950 + 0x002ac> in <filename unknown>:0
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask (System.Threading.Tasks.Task taskToHandle) <0x393b420 + 0x000c2> in <filename unknown>:0
This is the whole console output.
To reproduce it I did the following:
Added the package reference
<PackageReference Include="Microsoft.Graph" Version="3.0.1" />
Created my state class as:
public class FooMembersState
{
public bool IsLoading { get; private set; }
public string ErrorMessage { get; private set; }
public IEnumerable<Microsoft.Graph.User> FooMembers { get; private set; }
public FooMembersState(
bool isLoading,
string errorMessage,
IEnumerable<Microsoft.Graph.User> fooMembers)
{
IsLoading = isLoading;
ErrorMessage = errorMessage;
FooMembers = fooMembers;
}
}
from fluxor.
Thanks for the additional information. I was able to reproduce this and fix it. Could you try this prerelease and let me know if it solves the problem for you?
https://www.nuget.org/packages/Fluxor.Blazor.Web.ReduxDevTools/3.1.0-Pre-1
from fluxor.
It's working, I'm not getting the users yet but it's just an authorization/permissions problem now.
Thank you very much!
from fluxor.
It was the fault of System.Text.Json, I changed the interop so it always passes strings encoded with Newtonsoft and then JSON parses it in JS.
It'll be slower, but the ReduxDevTools are really only for debug so I can live with that :)
from fluxor.
Related Issues (20)
- .NET 8 server-side rendering doesn't work with Fluxor HOT 6
- RobiniaDocs API Explorer
- Can't locate issue HOT 6
- Please review PR 454 (Uri.Compare, routes with #fragments) HOT 5
- Fluxor on Blazor .NET 8 Preview RC2 HOT 1
- Is there a way to use Fluxor with the new Blazor Web App paradigm? .NET8.0 HOT 37
- StoreInitializer not working in Balzor .net 8 HOT 4
- Fluxor.Blazor.Web.Components.FluxorComponent does not work in .NET 8 HOT 2
- Fluxor dont work with new template .Net 8 and InteractiveServerRenderMode HOT 2
- Fluxor breaks ErrorBoundary in Blazor Wasm HOT 2
- Fluxor Redux Dev Tools eating ram HOT 5
- Fluxor.Blazor.Web.ReduxDevTools requires script-src 'unsafe-eval' on CSP HOT 1
- Subscribing external events HOT 2
- Blazor server app in used Redux(Fluxor) in asp .net core error Unable to resolve service for type 'Fluxor.IFeature` while attempting to activate 'Fluxor.State` HOT 2
- Dispatch from Polly HOT 4
- Dispatching action in effect - running orders HOT 1
- Fluxor does not seem to work with the new .NET 8 Blazor Web App template HOT 2
- Deadlock when dispatching from store/feature events HOT 3
- Reducer not getting invoked in .NET 8 Blazor HOT 2
- Test case for dispatcher failure in .NET8 with new render modes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluxor.