From 73d54418216e7216fd74e33f699b57844922fba0 Mon Sep 17 00:00:00 2001 From: chen fan <1490040662@qq.com> Date: Wed, 11 Sep 2024 21:16:46 +0800 Subject: [PATCH] feat: remove timeout error --- src/main/crawler/capture-error.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/crawler/capture-error.js b/src/main/crawler/capture-error.js index a22d0c7..c5e4ba2 100644 --- a/src/main/crawler/capture-error.js +++ b/src/main/crawler/capture-error.js @@ -17,11 +17,11 @@ export function captureError(fn) { log('error:', message) - if (message.includes('timeout')) { - return { - code: CRAWLER_ERROR_CODE.TIMEOUT - } - } + // if (message.includes('timeout')) { + // return { + // code: CRAWLER_ERROR_CODE.TIMEOUT + // } + // } if (message === ERROR_MESSAGE.INVALID_PROXY) { return {