Replies: 2 comments
-
polling does not raise ApiTelegramException-s. It handle and suppress it. Use exception_handler of Telebot to pass your handler. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, I will try to include exception_handler |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please answer these questions before submitting your issue. Thanks!
What version of pyTelegramBotAPI are you using?
4.17.0
What OS are you using?
Alpine linux on Docker container
What version of python are you using?
3.12.2
I'm trying to catch an exception
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 502. Description: Bad Gateway
:For some reason that I don't fully understand, I am unable to complete the task. Every time an error 502 occurs, a full traceback is generated in the logs:
Please let me know the correct method.
P.S.: The full source code is here: https://github.com/orenlab/pytmbot/tree/master/app
Beta Was this translation helpful? Give feedback.
All reactions