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

Application Exception: Exception during making request #736

Closed
nminaya opened this issue Jul 19, 2024 · 1 comment · Fixed by #747
Closed

Application Exception: Exception during making request #736

nminaya opened this issue Jul 19, 2024 · 1 comment · Fixed by #747
Labels
production-bug Bug captured automatically in Production enviroment telegram Related to Telegram Bot

Comments

@nminaya
Copy link
Owner

nminaya commented Jul 19, 2024

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

Date (UTC): 07/19/2024 13:14:21

Exception:

Telegram.Bot.Exceptions.RequestException: Exception during making request
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.Net.Http.HttpIOException: The response ended prematurely. (ResponseEnded)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(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.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Telegram.Bot.TelegramBotClient.g__SendRequestAsync|21_0[TResponse](HttpClient httpClient, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Telegram.Bot.TelegramBotClient.g__SendRequestAsync|21_0[TResponse](HttpClient httpClient, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClient.MakeRequestAsync[TResponse](IRequest`1 request, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateReceiver.ReceiveAsync(IUpdateHandler updateHandler, CancellationToken cancellationToken)

Exception caught counter: 2.

@nminaya nminaya added production-bug Bug captured automatically in Production enviroment telegram Related to Telegram Bot labels Jul 19, 2024
@nminaya
Copy link
Owner Author

nminaya commented Jul 23, 2024

Would be good to handle this exception since it seems to occur regularly.

nminaya added a commit that referenced this issue Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
production-bug Bug captured automatically in Production enviroment telegram Related to Telegram Bot
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant