Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error calling !score/!stop (when no game played?) #102

Open
alopezlago opened this issue Jul 4, 2023 · 0 comments
Open

Error calling !score/!stop (when no game played?) #102

alopezlago opened this issue Jul 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@alopezlago
Copy link
Owner

I found this stack trace in the logs. I suspect it's from calling !score/!stop when the game just started:

2023-07-03 22:49:53.310 +00:00 [ERR] Exception occurred on Discord.Net side
Discord.Commands.CommandException: Error occurred executing "stop"
---> System.InvalidOperationException: Stack empty.
at System.Collections.Generic.Stack1.ThrowForEmptyStack() at QuizBowlDiscordScoreTracker.GameState.EnsureCachedCollectionsExist(IEnumerable1 knownPlayers) in C:\Users\Alejandro\SkyDrive\Documents\Visual Studio 2017\Projects\QuizBowlDiscordScoreTracker\QuizBowlDiscordScoreTracker\GameState.cs:line 397
at QuizBowlDiscordScoreTracker.GameState.GetLastScoringSplits() in C:\Users\Alejandro\SkyDrive\Documents\Visual Studio 2017\Projects\QuizBowlDiscordScoreTracker\QuizBowlDiscordScoreTracker\GameState.cs:line 177
at QuizBowlDiscordScoreTracker.Commands.ScoreHandler.GetScoreAsync(ICommandContext context, GameStateManager manager) in C:\Users\Alejandro\SkyDrive\Documents\Visual Studio 2017\Projects\QuizBowlDiscordScoreTracker\QuizBowlDiscordScoreTracker\Commands\ScoreHandler.cs:line 54
at QuizBowlDiscordScoreTracker.Commands.ReaderCommandHandler.ClearAllAsync() in C:\Users\Alejandro\SkyDrive\Documents\Visual Studio 2017\Projects\QuizBowlDiscordScoreTracker\QuizBowlDiscordScoreTracker\Commands\ReaderCommandHandler.cs:line 443
at Discord.Commands.ModuleClassBuilder.<>c__DisplayClass6_0.<g__ExecuteCallback|0>d.MoveNext()
--- End of stack trace from previous location ---
at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services)
--- End of inner exception stack trace ---

@alopezlago alopezlago added the bug Something isn't working label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant