BrasilAPI / BrasilAPI

Vamos transformar o Brasil em uma API?

Home Page:https://brasilapi.com.br

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Endpoint /api/ibge/uf/v1 retornando erro 500

Factobot opened this issue · comments

Tanto no browser quanto no postman retorna o mesmo error

{ "message": "unable to verify the first certificate", "name": "Error", "stack": "Error: unable to verify the first certificate\n at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34)\n at TLSSocket.emit (node:events:513:28)\n at TLSSocket._finishInit (node:_tls_wrap:953:8)\n at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12)\n at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)", "config": { "url": "https://servicodados.ibge.gov.br/api/v1/localidades/estados", "method": "get", "headers": { "Accept": "application/json, text/plain, */*", "User-Agent": "axios/0.21.1", "x-vercel-id": "cdg1::lftd6-1685720428903-68750e1ccff2" }, "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1 }, "code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE" }

image

Olá @Factobot! Provavelmente foi alguma instabilidade na API do IBGE. Tentei agora e está normal.

Realmente foi alguma instabilidade do momento em que você fez o teste, o endpoint /api/ibge/uf/v1 está retornando OK

image

Testei aqui também e está funcionando:
image

commented

@Factobot Podemos então fechar o issue?? Chegou a testar novamente para confirmar?