-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TelegramApiErrorResponseException: null while GetUpdates Request #1401
Comments
The problem on Telegram servers end, or with the network when reaching them. Here's mine logs:
|
I do receive the occasional Exceptions and then resets to usual behaviour. But for the case posted above, it is quite peculiar as it reaches the backoff limit of 90000 millis and any getUpdate after always leads to an Exception. But if backoff limit is not reached, most of the time the retries reset to normal behaviour without exception. The only way I have managed to reproduce this issue is to keep the bot idle and not give it any updates for several days (1 week to be safe). |
@brating actually, I've never reached such timeouts. Sometimes Telegram servers are not available for 2-4 minutes, the maximum is 12830 according to my logs. I guess it's something on your end. Possibly network configuration. Also try to update the library to the latest version and/or enable debug logs for a week and check them later. |
Describe the bug
I have been noticing TelegramApiErrorResponseException if I leave the long polling bot running for couple of days without any updates.
Surprisingly, if i restart the application, the error goes away. Any idea if this is a persistent issue?
To Reproduce
Starting the long polling bot application and leave it running for couple of days without activity.
Expected behavior
The bot is expected to receive 0 updates without any exception as no new updates are created during that period.
Screenshots
roblem.
The text was updated successfully, but these errors were encountered: