fix(telegram): add 'timed out' to recoverable error detection

The getUpdates timeout error message uses 'timed out' but
NETWORK_ERROR_SNIPPETS/RECOVERABLE_MESSAGE_SNIPPETS only had 'timeout',
causing the error to bypass retry logic and exit the channel permanently.

Add 'timed out' to both snippet lists so these errors trigger
exponential backoff retry instead of exiting.

Fixes #4617
This commit is contained in:
Ozgur Polat 2026-01-30 13:14:59 +01:00
parent da71eaebd2
commit 34aa49ff9d
2 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ const NETWORK_ERROR_SNIPPETS = [
"fetch failed",
"network",
"timeout",
"timed out",
"socket",
"econnreset",
"econnrefused",

View File

@ -35,6 +35,7 @@ const RECOVERABLE_MESSAGE_SNIPPETS = [
"network request",
"client network socket disconnected",
"socket hang up",
"timed out",
"getaddrinfo",
];