From f77f6bdcc3d8ba5a76489db0f81010497ea5575e Mon Sep 17 00:00:00 2001 From: SukkaW Date: Thu, 14 May 2026 17:22:36 +0800 Subject: [PATCH] Fix: undici retry on `UND_ERR_DESTROYED` --- Build/lib/fetch-retry.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Build/lib/fetch-retry.ts b/Build/lib/fetch-retry.ts index cb8fd37b..84af355c 100644 --- a/Build/lib/fetch-retry.ts +++ b/Build/lib/fetch-retry.ts @@ -57,6 +57,7 @@ const agent = new Agent({ // Any code that is not a Undici's originated and allowed to retry if ( errorCode === 'ERR_UNESCAPED_CHARACTERS' + || errorCode === 'UND_ERR_DESTROYED' || err.message === 'Request path contains unescaped characters' || err.name === 'AbortError' ) {