Fluxor icon indicating copy to clipboard operation
Fluxor copied to clipboard

Can't locate issue

Open djjohnson-net opened this issue 1 year ago • 1 comments

I have been trying all day to figure out where this Fluxor error is coming from. Any help would be greatly appreciated.

[2023-09-21T20:01:27.518Z] Error: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'source')) ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source') at Fluxor.Blazor.Web.StoreInitializer.OnAfterRender(Boolean firstRender) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\StoreInitializer.cs:line 57 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---

djjohnson-net avatar Sep 21 '23 20:09 djjohnson-net

Try setting this attribute on StoreInitializer to catch unhandled exceptions.

https://github.com/mrpmorris/Fluxor/blob/master/Source/Lib/Fluxor.Blazor.Web/StoreInitializer.cs#L17

mrpmorris avatar Oct 17 '23 12:10 mrpmorris

I'll close this. Please let me know if I need to reopen it.

mrpmorris avatar Feb 25 '24 13:02 mrpmorris

I have been trying all day to figure out where this Fluxor error is coming from. Any help would be greatly appreciated.

[2023-09-21T20:01:27.518Z] Error: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'source')) ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source') at Fluxor.Blazor.Web.StoreInitializer.OnAfterRender(Boolean firstRender) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\StoreInitializer.cs:line 57 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---

I am getting the same error. Could you solve it? Thank you!

EzequielMoroni avatar Apr 14 '24 16:04 EzequielMoroni

Can you paste the stack trace in the exception please?

mrpmorris avatar Apr 14 '24 20:04 mrpmorris

Hi, yes, here's mine:

blazor.web.js:1 [2024-04-14T16:38:34.414Z] Error: System.AggregateException: One or more errors occurred. (Nullable object must have a value.) ---> System.InvalidOperationException: Nullable object must have a value. at Fluxor.Blazor.Web.StoreInitializer.OnAfterRender(Boolean firstRender) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\StoreInitializer.cs:line 57 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---

Thank you

EzequielMoroni avatar Apr 15 '24 02:04 EzequielMoroni

It seems that the issue was on our end. We were trying to access a variable when it wasn't loaded yet. Thank you

EzequielMoroni avatar Apr 15 '24 14:04 EzequielMoroni