瀏覽代碼

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'
       ) {