From 91c7087bdc18f01554ed9e8a1076e51fd32569e5 Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 28 Aug 2024 21:12:34 -0300 Subject: [PATCH] retry all errors --- sepa-precios-archiver/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepa-precios-archiver/index.ts b/sepa-precios-archiver/index.ts index 8938cde..6ffac43 100644 --- a/sepa-precios-archiver/index.ts +++ b/sepa-precios-archiver/index.ts @@ -150,7 +150,7 @@ for (const resource of datasetInfo.result.resources) { console.info(dir); try { const zip = join(dir, "zip"); - await $`curl --retry 8 --retry-delay 5 -L -o ${zip} ${resource.url}`; + await $`curl --retry 8 --retry-delay 5 --retry-all-errors -L -o ${zip} ${resource.url}`; await $`unzip ${zip} -d ${dir}`; await rm(zip);