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:
parent
da71eaebd2
commit
34aa49ff9d
@ -78,6 +78,7 @@ const NETWORK_ERROR_SNIPPETS = [
|
||||
"fetch failed",
|
||||
"network",
|
||||
"timeout",
|
||||
"timed out",
|
||||
"socket",
|
||||
"econnreset",
|
||||
"econnrefused",
|
||||
|
||||
@ -35,6 +35,7 @@ const RECOVERABLE_MESSAGE_SNIPPETS = [
|
||||
"network request",
|
||||
"client network socket disconnected",
|
||||
"socket hang up",
|
||||
"timed out",
|
||||
"getaddrinfo",
|
||||
];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user