OpenBudgeteer: Collection was modified Exception when loading Rules Page

Creating a rule throws the following exception:

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100] Unhandled exception rendering component: Collection was modified; enumeration operation may not execute. System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List1.Enumerator.MoveNext() at OpenBudgeteer.Blazor.Pages.Rules.BuildRenderTree(RenderTreeBuilder __builder) in /src/OpenBudgeteer.Blazor/Pages/Rules.razor:line 106 at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit 'FsnA1rF9kTaML5BqLK2RfDbStpQenWAtKE9M7pdauaI'. System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List1.Enumerator.MoveNext() at OpenBudgeteer.Blazor.Pages.Rules.BuildRenderTree(RenderTreeBuilder __builder) in /src/OpenBudgeteer.Blazor/Pages/Rules.razor:line 106 at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

This doesn’t happen every time, but very frequently. The rule is still being created. I have not managed to work out any pattern to when it works and when it doesn’t. All the rules I’m creating are using priority 0, the same name as the target bucket, and mapping rule “memo” “contains”.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 25 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Oh sorry you meant in traefik, gotcha. Will try.  -------- Original message --------From: Alexander Preibisch @.> Date: 26/8/23 19:13 (GMT+08:00) To: TheAxelander/OpenBudgeteer @.> Cc: andyvandesand @.>, Author @.> Subject: Re: [TheAxelander/OpenBudgeteer] Exception when adding rules (Issue #165) I’m not completely familiar with Traefik as I’m using Nginx Proxy Manager, on some sites it says it works automatically, others provide some special settings. Just to see if this is really the root cause, I would propose that you try to access the site directly via IP and see if the errors still pop up. If not then it’s most probably an issue within Traefik.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>