nminaya / grammar-nazi-bot

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

Application Exception: Error on GetAllItems #188

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): 04/08/2021 15:51:55

Exception:

System.InvalidOperationException: Error on GetAllItems ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream. at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Firebase.Database.Http.HttpClientExtensions.GetObjectCollectionAsync[T](HttpClient client, String requestUri, JsonSerializerSettings jsonSerializerSettings) --- End of inner exception stack trace --- at GrammarNazi.Core.Repositories.FirebaseRepository1.ExecuteFirebaseQuery[TResult](Func1 action, String callerMemberName) in /src/GrammarNazi.Core/Repositories/FirebaseRepository.cs:line 115 at GrammarNazi.Core.Repositories.FirebaseRepository1.GetAllItems() in /src/GrammarNazi.Core/Repositories/FirebaseRepository.cs:line 92 at GrammarNazi.Core.Repositories.FirebaseRepository1.GetFirst(Expression`1 filter) in /src/GrammarNazi.Core/Repositories/FirebaseRepository.cs:line 64 at GrammarNazi.App.HostedServices.TelegramBotHostedService.GetChatConfiguration(Int64 chatId) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 174 at GrammarNazi.App.HostedServices.TelegramBotHostedService.OnMessageReceived(Object sender, MessageEventArgs messageEvent) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 113 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

I'll need to find a better way to handle this exception since this is just a momentary network issue