nminaya / grammar-nazi-bot

Bot that corrects spelling mistakes.
MIT License
31 stars 8 forks source link

Application Exception: Index was outside the bounds of the array. #159

Closed nminaya closed 3 years ago

nminaya commented 3 years ago

This is an issue created automatically by GrammarNazi when an exception was captured.

Date (UTC): 03/16/2021 15:10:06

Exception:

System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Array.Clear(Array array, Int32 index, Int32 length) at GrammarNazi.Core.Services.BaseGrammarService.SetWhiteListWords(IEnumerable`1 whiteListWords) in /src/GrammarNazi.Core/Services/GrammarServices/BaseGrammarService.cs:line 34 at GrammarNazi.App.HostedServices.TelegramBotHostedService.GetConfiguredGrammarService(ChatConfiguration chatConfig) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 183 at GrammarNazi.App.HostedServices.TelegramBotHostedService.OnMessageReceived(Object sender, MessageEventArgs messageEvent) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 121 at GrammarNazi.App.HostedServices.TelegramBotHostedService.b__7_0(Object obj, MessageEventArgs eventArgs) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 83

nminaya commented 3 years ago

Same exception thrown in issue #46