-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Error HTTP 502 in long polling (bot.getUpdates) #40
Comments
How exactly to reproduce? Are these errors common in what kind of messages? Would you handle these exceptions and print its messages.to_json()? Thanks! |
A 502 error indicates that the gateway failed to pass the request to the backend servers, which is, as its first digit indicates, a server error. So actually what you can do is very limited, usually you would want to catch these exceptions and ignore them, or alert that the operation failed. I've experienced 502 Bad Gateway that day before yesterday, when I was trying to send photo to Telegram server. The errors were gone by yesterday, and I did not change any code related to this. So I think it's the Telegram server's fault. |
Thanks, I don't know how to reproduce. For the moment I put exception handling (as I should) and it didn't happen again yet. It was pretty random, I mean, I think I got it while I was I'll tell if it'll happen again. |
I got this error yesterday too. I wonder if it is some kind of abuse protection. |
Sometimes, I get 502 when calling bot.getUpdates() method.
Log:
The text was updated successfully, but these errors were encountered: