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

fixed read: connection reset by peer, added resending #22

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

audetv
Copy link
Contributor

@audetv audetv commented Mar 3, 2024

Попытка исправить ошибку при отправке сообщений.
Участились случаи, когда телеграм отдает ошибку: read: connection reset by peer при попытке отправит сообщение.

https://svodd.sentry.io/issues/5032817463/

TG-SVODD-BOT-1P, TG-SVODD-BOT-1Q,TG-SVODD-BOT-1R,G-SVODD-BOT-1S,TG-SVODD-BOT-1T,TG-SVODD-BOT-1V,TG-SVODD-BOT-1W,TG-SVODD-BOT-1X,TG-SVODD-BOT-1Y,TG-SVODD-BOT-1Z,TG-SVODD-BOT-20,TG-SVODD-BOT-21,TG-SVODD-BOT-22,TG-SVODD-BOT-23

Функция отправки теперь обернута в цикл из 5 шагов, если будет получена ошибка при отправке, то функция ожидает 3 секунды и отправляет сообщение снова и так до истечения лимита 5 раз.

@audetv audetv merged commit eabb687 into main Mar 3, 2024
2 checks passed
@audetv audetv deleted the TG-SVODD-BOT-23 branch March 3, 2024 16:07
@audetv
Copy link
Contributor Author

audetv commented Mar 3, 2024

Fixed #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Сообщение не доставлено, т.к. сервер телеграма не отвечал.
1 participant