From b66ad32a1d9d88b2f6fb02ff5cd94ac45d4b69b5 Mon Sep 17 00:00:00 2001 From: Randy <8247661+randyou@users.noreply.github.com> Date: Wed, 23 Mar 2022 16:28:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E9=87=8D=E8=AF=95=E6=9C=BA?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/index.js b/bin/index.js index b285f35..30cd767 100755 --- a/bin/index.js +++ b/bin/index.js @@ -58,7 +58,7 @@ const upload = async (filePath, parts = []) => { } catch (error) { logger.error(error.message); logger.error(error.stack); - if (['ECONNREFUSED', 'ECONNRESET', 'ENOENT'].includes(error.code)) { + if (['ECONNREFUSED', 'ECONNRESET', 'ENOENT', 'EPROTO'].includes(error.code)) { // 没有重试过就重试一次 if (!isRetry) { logger.warn('retry')