From 0c86f0e3e3ce495ef53bffe033fca854d587b707 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 27 Nov 2023 20:08:36 -0300 Subject: [PATCH] solo correr codigo de reintento en sharepoint --- download_json.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/download_json.js b/download_json.js index 993110a..ec0b0c2 100644 --- a/download_json.js +++ b/download_json.js @@ -77,7 +77,10 @@ const greens = Array(128) } catch (error) { if (error instanceof StatusCodeError) { // algunos servidores usan 403 como coso para decir "calmate" - if (error.code === 403) { + if ( + error.code === 403 && + dist.downloadURL.includes("minsegar-my.sharepoint.com") + ) { console.debug( `debug: reintentando ${dist.downloadURL} porque tirĂ³ 403`, );