Title: On startup throws An item with the same key has already been added. Key: 0 · Issue #2128 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: On startup throws An item with the same key has already been added. Key: 0 · Issue #2128 · DSharpPlus/DSharpPlus
X Title: On startup throws An item with the same key has already been added. Key: 0 · Issue #2128 · DSharpPlus/DSharpPlus
Description: Summary Nightly 2390 on startup it throws this error [2024:10:24 22:09:56 ERR] [ | ] Event handler exception for event DSharpPlus.EventArgs.ClientStartedEventArgs thrown from System.Threading.Tasks.Task lambda_method2(System.Runtime.Comp...
Open Graph Description: Summary Nightly 2390 on startup it throws this error [2024:10:24 22:09:56 ERR] [ | ] Event handler exception for event DSharpPlus.EventArgs.ClientStartedEventArgs thrown from System.Threading.Tasks...
X Description: Summary Nightly 2390 on startup it throws this error [2024:10:24 22:09:56 ERR] [ | ] Event handler exception for event DSharpPlus.EventArgs.ClientStartedEventArgs thrown from System.Threading.Tasks...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/2128
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On startup throws An item with the same key has already been added. Key: 0","articleBody":"### Summary\n\nNightly 2390 on startup it throws this error\n```\n[2024:10:24 22:09:56 ERR] [ | ] Event handler exception for event DSharpPlus.EventArgs.ClientStartedEventArgs thrown from System.Threading.Tasks.Task lambda_method2(System.Runtime.CompilerServices.Closure, DSharpPlus.DiscordClient, DSharpPlus.EventArgs.ClientStartedEventArgs, System.IServiceProvider) (defined in null).\nSystem.ArgumentException: An item with the same key has already been added. Key: 0\n at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\n at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)\n at DSharpPlus.Commands.Processors.SlashCommands.SlashCommandProcessor.MapApplicationCommands(IReadOnlyList`1 applicationCommands)\n at DSharpPlus.Commands.Processors.SlashCommands.SlashCommandProcessor.RegisterSlashCommandsAsync(CommandsExtension extension)\n at DSharpPlus.Commands.Processors.SlashCommands.SlashCommandProcessor.ConfigureAsync(CommandsExtension extension)\n at DSharpPlus.Commands.CommandsExtension.RefreshAsync()\n at DSharpPlus.Commands.RefreshEventHandler.HandleEventAsync(DiscordClient sender, ClientStartedEventArgs eventArgs)\n at DSharpPlus.Clients.DefaultEventDispatcher.\u003c\u003ec__DisplayClass5_0`1.\u003c\u003cDispatchAsync\u003eb__0\u003ed.MoveNext()\n```\n\n\n\n### What version of the library are you using?\n\nv5.0.0-nightly (make sure you are using the latest nightly!)\n\n### What .NET version are you using? Make sure to use the latest patch release for your major version.\n\n.NET 8.0\n\n### Operating System\n\nWin 11\n\n### Reproduction Steps\n\nNot entirely sure what causes this. Aki said - \"that sounds like a bug with DebugGuildId i hypothesized would happen...\"\nBe on nightly 2390\nMy config https://github.com/BlackLotusLV/TheCrewCommunity/blob/master/TheCrewCommunity/ServiceConfiguration.cs#L130\n\n### Trace Logs\n\n_No response_\n\n### Exceptions or other error messages\n\n_No response_\n\n### Anything else you'd like to share\n\n_No response_","author":{"url":"https://github.com/BlackLotusLV","@type":"Person","name":"BlackLotusLV"},"datePublished":"2024-10-24T19:31:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2128/DSharpPlus/issues/2128"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3fc05722-742b-b225-b190-22b47ef53c12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B746:3D32FE:566D4B9:765A937:698CDF4D |
| html-safe-nonce | 426f3851fcd8cfc81eea08408f78fba3d51e85ac0f39bf20e766ae3473157bb7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzQ2OjNEMzJGRTo1NjZENEI5Ojc2NUE5Mzc6Njk4Q0RGNEQiLCJ2aXNpdG9yX2lkIjoiNTYzMjM3NTAwMzcwMzcyOTk5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 537d132c31fd0b7d7c941b0b53aae29f13b76d8b8034711197fa531162cded7d |
| hovercard-subject-tag | issue:2612406430 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/2128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/675fae822417e54f8d72c6bcf50fdb55c433828f2ee512f0e0f5398aeb829a05/DSharpPlus/DSharpPlus/issues/2128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/675fae822417e54f8d72c6bcf50fdb55c433828f2ee512f0e0f5398aeb829a05/DSharpPlus/DSharpPlus/issues/2128 |
| og:image:alt | Summary Nightly 2390 on startup it throws this error [2024:10:24 22:09:56 ERR] [ | ] Event handler exception for event DSharpPlus.EventArgs.ClientStartedEventArgs thrown from System.Threading.Tasks... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BlackLotusLV |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git |
| octolytics-dimension-user_id | 36208721 |
| octolytics-dimension-user_login | DSharpPlus |
| octolytics-dimension-repository_id | 67243489 |
| octolytics-dimension-repository_nwo | DSharpPlus/DSharpPlus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67243489 |
| octolytics-dimension-repository_network_root_nwo | DSharpPlus/DSharpPlus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width