Skip to content

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

Closed

Description

@Factobot

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

Activity

  1. andreoneres commented on Jun 6, 2023

    @andreoneres

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

  2. fernandohre commented on Jun 15, 2023

    @fernandohre

    Testei aqui também e está funcionando:
    image

  3. ZCErik commented on Jul 5, 2023

    @ZCErik

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

  4. lucianopf commented on Aug 8, 2026

    @lucianopf
    Member

    Resolvida — o endpoint /api/ibge/uf/v1/{code} está respondendo 200 (verificado em produção 08/08/2026). O 500 era da fonte de dados (mudança no schema do IBGE), corrigida pelo #820.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions