-
Notifications
You must be signed in to change notification settings - Fork 5.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
TimedOut on get_updates #802
Comments
I encounter the same issue/error (socket.timeout). For getUpdates, timeout set to anything but 0 results in errors. They are way less frequent when leaving out the timeout parameter, but they still do occur. |
FYI the |
I have the same issue. Changing the |
Hi,
|
Hey folks! I've very affected by this. Is there a quickfix to just ignore these and silently reconnect, if needed? Are patches welcome, eh? ;) |
Is there any progress on this? I can still reproduce this with the newest version, I start getting the errors after about 30 minutes of inactivity. |
I also have this error. |
I had this issue using heroku. The problem was that my Procfile started with |
TimedOut exception is an expected an normal event. To reduce noise and make things more "fluent" we now: - Make sure that we don't sleep after the timeout but rather retry immediately. - Log debug instead of error level. Fixes #802
Hi, I hope it will answer why a timeout is (unfortunately) an unavoidable condition and will give you some hints on how to fine tune your bot. In addition, once PR #1007 will be merged, there will be a better handling of timeouts during get_updates (that merge should happen today). |
TimedOut exception is an expected an normal event. To reduce noise and make things more "fluent" we now: - Make sure that we don't sleep after the timeout but rather retry immediately. - Log debug instead of error level. Fixes #802
I also have this problem. |
@yongman, just update python-telegram-bot using this command:
|
@Andreychik32 ,Thanks for you reply. I update the python-telegram-bot by pip3, but I also get the following errors.
and the bot exit. By the way, the network from my vps to |
More to say, this error occur from today and bot cannot work as before. |
Telegram currently has a power outage: https://twitter.com/telegram/status/990474364108894209 |
@Brawl345 Thanks for your information. It seems the telegram's problem, but the python-telegram-bot also have the bug if timeout exists? |
@yongman As suggested in one of the earlier comments please make sure to read the wiki page: https://telegram.me/pythontelegrambotgroup If you've identified an actual bug with the library please open a new issue instead of reviving an old one. |
@yongman |
Calling get_updates consistently crashes the bot with
telegram.error.TimedOut: Timed out
.The code:
The log:
The text was updated successfully, but these errors were encountered: