Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alguns CEPs só são encontrados com hífen. Outros só são encontrados sem hífen #592

Open
tobiasrdm opened this issue Feb 29, 2024 · 2 comments

Comments

@tobiasrdm
Copy link

Boa tarde! Alguns CEPs só são encontrados com hífen. Outros só são encontrados sem hífen.

Exemplos:

Por causa dessas respostas imprevisíveis, quando um CEP não é encontrado está sendo necessário fazer uma segunda consulta colocando ou retirando o hífen.

image

image

@fernandoacosta
Copy link

O que acontece aí é algum problema de cache + intergação na API.

https://brasilapi.com.br/api/cep/v2/22250145 nesse momento retorna erro em todos os serviços.

Se coloca https://brasilapi.com.br/api/cep/v2/22250145?test retorna certo.

Então está armazenando em cache mesmo consultas com falha

@guilherme-aguilar
Copy link

O erro agora também acontece com ?test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants