fix: Telegram 409 polling conflict treated as permanently fatal - #2298
Closed
dieutx wants to merge 1 commit into
Closed
fix: Telegram 409 polling conflict treated as permanently fatal#2298dieutx wants to merge 1 commit into
dieutx wants to merge 1 commit into
Conversation
Transient 409 Conflict errors from Telegram's getUpdates are expected during gateway restarts (--replace handoff, systemd restart, etc.) when the old long-poll session hasn't fully expired on Telegram's server. Retry up to 3 times with a 10-second delay (30s total window) before marking the conflict as permanently fatal. This gives Telegram's server time to release stale sessions while still protecting against genuine dual-instance conflicts. Closes NousResearch#2296
Contributor
|
Closing in favor of #2297 which takes a more thorough approach — it explicitly stops and restarts the polling subsystem on retry rather than relying on passive recovery, resets the counter on success, and includes test coverage. Thanks for the contribution! |
This was referenced Aug 3, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix for #2296: [Bug]: Telegram 409 polling conflict treated as permanently fatal — no retry
Closes #2296
Test plan