jceddy / DailyArenaDeckAdvisor

A Deck Advisor companion App for Magic Arena.
GNU General Public License v3.0
18 stars 7 forks source link

Unhandled Exception in loadTask (Window_Loaded - Main Application) #268

Closed jceddy closed 2 years ago

jceddy commented 2 years ago

An unhandled exception was detected.

Exception:

System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at DailyArena.DeckAdvisor.MainWindow.ReloadAndCrunchAllData() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at DailyArena.DeckAdvisor.MainWindow.ReloadAndCrunchAllData() at System.Threading.Tasks.Task.Execute()<---

%log2022021116.txt%

%Player.log%

Slurpas commented 2 years ago

Getting similar issue:

{"@t":"2022-04-11T00:01:05.0132306Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.NotSupportedException: UriTypeConverter cannot convert from (null).\r\n at System.ComponentModel.TypeConverter.GetConvertFromException(Object value)"} {"@t":"2022-04-11T00:01:05.4612003Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'LastCardDatabaseUpdate'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4821995Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4847016Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'LastStandardSetsUpdate'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4856995Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4866995Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Sets'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4936997Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Name'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4962006Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Code'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.4982044Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'ArenaCode'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5002000Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'NotInBooster'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5257131Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'TotalCards'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5307016Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'RarityCounts'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5437028Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'RotationEnter'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5482025Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'RotationExit'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5502017Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'ExtendedCardInfo'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.5562030Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'ExtendedCardInfo'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6107028Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Cards'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6152018Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'ArenaId'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6172074Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Name'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6192018Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Set'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6212030Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'CollectorNumber'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6237040Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Rarity'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6257017Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Colors'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6282026Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Rank'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6297017Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Cost'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6322024Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Cmc'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:05.6342025Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'ScryfallId'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:11.2370092Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'cards'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:11.6577643Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.\r\n at System.Net.HttpWebRequest.GetResponse()"} {"@t":"2022-04-11T00:01:11.6577643Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.\r\n at System.Net.HttpWebRequest.GetResponse()"} {"@t":"2022-04-11T00:01:12.0996372Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.\r\n at System.Net.HttpWebRequest.GetResponse()"} {"@t":"2022-04-11T00:01:12.1001386Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.\r\n at System.Net.HttpWebRequest.GetResponse()"} {"@t":"2022-04-11T00:01:12.1001386Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.\r\n at System.Net.HttpWebRequest.GetResponse()\r\n at DailyArena.Common.Core.Utility.WebUtilities.FetchStringFromUrl(String url, Boolean ignoreWebException, List`1& exceptions)"} {"@t":"2022-04-11T00:01:12.1671394Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'ColorsByLand'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.1716401Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'LastUpdate'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.1731463Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.6040376Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Bannings'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.6065377Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'LastUpdate'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.6075371Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.7575974Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Translations'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.7615974Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'LastUpdate'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:12.7625974Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:18.1758941Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:18.1793917Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'string'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:18.2473919Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"} {"@t":"2022-04-11T00:01:18.2578944Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"} {"@t":"2022-04-11T00:01:18.2648940Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"} {"@t":"2022-04-11T00:01:18.2688921Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"} {"@t":"2022-04-11T00:01:18.2698915Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"} {"@t":"2022-04-11T00:01:18.2698915Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"} {"@t":"2022-04-11T00:01:18.3038923Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Payload'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:18.3063924Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'Payload'\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:18.3103917Z","@mt":"FirstChanceException","@l":"Debug","@x":"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'Newtonsoft.Json.Linq.JValue' to 'int'. An explicit conversion exists (are you missing a cast?)\r\n at Microsoft.CSharp.RuntimeBinder.RuntimeBinderController.SubmitError(CError pError)"} {"@t":"2022-04-11T00:01:18.3148921Z","@mt":"FirstChanceException","@l":"Debug","@x":"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()"}

jceddy commented 2 years ago

I found the issue with this one, and am working on a fix.

Slurpas commented 2 years ago

I found the issue with this one, and am working on a fix.

Thanks alot, sir!

jceddy commented 2 years ago

I just pushed version 1.0.9.3, which should fix these issues. Some of the third party applications that DADA relies on were feeding it buggy/weird data. I had to add some special handling to fix the bad data manually before using it.

Can someone give it a try?

jceddy commented 2 years ago

Should be fixed in 1.0.9.3

dpo007 commented 2 years ago

Still no dice with 1.0.9.3. :( "Unhandled Exception - Sending Data to Server"