From 9a623133d3bcd118a93b4da4ff1cdd9669960779 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 10 Dec 2023 01:37:22 -0300 Subject: [PATCH] downloader: intentar varias veces con cdn.buenosaires.gob.ar --- downloader/download_json.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downloader/download_json.js b/downloader/download_json.js index 477ca87..ba8d2b8 100644 --- a/downloader/download_json.js +++ b/downloader/download_json.js @@ -162,8 +162,8 @@ async function downloadDistWithRetries(job, attempts = 0) { // intentar hasta 15 veces con 15 segundos de por medio if ( error instanceof StatusCodeError && - error.code === 403 && - url.host === "minsegar-my.sharepoint.com" && + ((error.code === 403 && url.host === "minsegar-my.sharepoint.com") || + (error.code === 503 && url.host === "cdn.buenosaires.gob.ar")) && attempts < 15 ) { await wait(15000);