ソースを参照

Fix: undici retry on `UND_ERR_DESTROYED`

SukkaW 1 日 前
コミット
f77f6bdcc3
1 ファイル変更1 行追加0 行削除
  1. 1 0
      Build/lib/fetch-retry.ts

+ 1 - 0
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'
       ) {