From b1593956c7770d14409817a20521ba184b75a6b6 Mon Sep 17 00:00:00 2001 From: tulioperdigao <116309232+tulioperdigao@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:03:48 -0300 Subject: [PATCH] =?UTF-8?q?FIX:=20Aumentando=20n=C3=BAmero=20de=20tentativ?= =?UTF-8?q?as=20para=20consulta=20VIACEP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 5f82d1e..4b6cce1 100644 --- a/app.js +++ b/app.js @@ -33,7 +33,7 @@ function createApp() { if (!viaCepData || viaCepData.erro) { console.info(`[INFO] Primeira tentativa da API ViaCEP falhou para o CEP ${cep}, tentando novamente...`); let attempt = 0; - const maxAttempts = 3; + const maxAttempts = 5; let viaCepData = null; while (attempt < maxAttempts) { viaCepData = await fetchJson(