multifol-io / site

project home for https://multifol.io/ -- tools to plan Annual Savings and Track your Portfolio
Apache License 2.0
6 stars 0 forks source link

clicking "refresh prices" while prices are refreshing leads to error #275

Closed rrelyea closed 5 months ago

rrelyea commented 6 months ago

one example stack:

System.InvalidOperationException: Collection was modified after the enumerator was instantiated. at System.Collections.Generic.SortedSet1.Enumerator[[System.Collections.Generic.KeyValuePair2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List1[[Investment, src, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at System.Collections.Generic.SortedDictionary2.Enumerator[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List`1[[Investment, src, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at FamilyData.RefreshPrices(HttpClient http) in C:\Users\rob\repos\bogle-tools-site\Shared\Models\FamilyData\FamilyData.cs:line 716 at src.Pages.Portfolio.refreshPrices() in C:\Users\rob\repos\bogle-tools-site\Pages\Portfolio.razor:line 1096 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)