tpill90 / epic-lancache-prefill

CLI tool to automatically prime a Lancache with Epic Launcher games
https://tpill90.github.io/epic-lancache-prefill/
MIT License
46 stars 4 forks source link

An item with the same key has already been added. Key: Hangar410 #62

Closed itsTKRaz closed 3 weeks ago

itsTKRaz commented 3 weeks ago

This error occurs when I try to select-apps. Tried to reset and clear account folder and re-authorize multiple times.

[3:18:23 PM] Please login into Epic via your browser
[3:18:23 PM] If the web page did not open automatically, please manually open the following URL: https://legendary.gl/epiclogin
[3:18:29 PM] Retrieving owned apps
[3:20:40 PM] System.ArgumentException: An item with the same key has already been added. Key: Hangar410
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior)
   at EpicPrefill.Handlers.EpicGamesApi.<>c__DisplayClass9_0.<<LoadAppMetadataAsync>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at Spectre.Console.Progress.<>c__DisplayClass27_0.<<StartAsync>b__0>d.MoveNext() in Spectre.Console\Live\Progress\Progress.cs:line 98
--- End of stack trace from previous location ---
   at Spectre.Console.Progress.<>c__DisplayClass28_0`1.<<StartAsync>b__0>d.MoveNext() in Spectre.Console\Live\Progress\Progress.cs:line 133
--- End of stack trace from previous location ---
   at Spectre.Console.Internal.DefaultExclusivityMode.RunAsync(Func`1 func) in Spectre.Console\Internal\DefaultExclusivityMode.cs:line 40
   at Spectre.Console.Progress.StartAsync(Func`2 action) in Spectre.Console\Live\Progress\Progress.cs:line 116
   at Spectre.Console.Progress.StartAsync(Func`2 action) in Spectre.Console\Live\Progress\Progress.cs:line 96
   at EpicPrefill.Handlers.EpicGamesApi.LoadAppMetadataAsync(List`1 apps)
   at EpicPrefill.Handlers.EpicGamesApi.GetOwnedAppsAsync()
   at EpicPrefill.EpicGamesManager.GetAllAvailableAppsAsync()
   at EpicPrefill.CliCommands.SelectAppsCommand.BuildTuiAppModelsAsync(EpicGamesManager epicManager)
   at EpicPrefill.CliCommands.SelectAppsCommand.ExecuteAsync(IConsole console)
tpill90 commented 3 weeks ago

Duplicate of #58

tpill90 commented 3 weeks ago

This issue should now be resolved in the latest v2.1.0 release. Please give it a test and let me know if the issue still persists on the ticket #58 since I believe that this issue is a duplicate of that one. Thank you