downloader: intentar varias veces con cdn.buenosaires.gob.ar

This commit is contained in:
Cat /dev/Nulo 2023-12-10 01:37:22 -03:00
parent 5607d46726
commit 9a623133d3

View file

@ -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);