API - Works on Postman but not on Bubble

Hi Everyone!

I am having an issue with an API that used to work.

I tested it on Postman and it works perfectly. When I test it on bubble, it takes a long time to answer and then we get an ECONNRESET error.

I checked the automatic headers on postman and even imported the postman call as curl, but it still doesn’t work. Do you know what else can it be?

Could you share a screenshot of the api connector and the postman set up?

Sure:
Postman:

Body:
{
“cpf”: “XXXXXXXXXXX”,
“validacao”: {
“nome”: “Manuela Elisa da Mota”,
“situacao_cpf”: “regular”,
“data_nascimento”: “1975-06-04”,
“sexo”: “F”,
“nacionalidade”: 1,
“nome_mae”: “Simone Carla da Mota”,
“nome_pai”: “Roberto Bruno da Mota”,
“tipo_documento_origem”: 1,
“numero_documento_origem”: “123456789”,
“orgao_expedidor_documento_origem”: “SSP”,
“uf_expedidor_documento_origem”: “SP”,
“endereco”: {
“logradouro”: “Rua Olívia Guedes Penteado”,
“numero”: “941”,
“bairro”: “Capela do Socorro”,
“cep”: “04766900”,
“municipio”: “São Paulo”,
“uf”: “SP”
},
“cnh”: {
“numero_registro”: “00000000”,
“categoria”: “B”,
“situacao”: “3”,
“data_primeira_habilitacao”: “2000-04-03”,
“data_ultima_emissao”: “2020-04-03”,
“data_validade”: “2025-04-03”,
“possui_impedimento”: true,
“observacoes”: “EAR”
},
“biometria_facial”: {
“vivacidade”: true,
“formato”: “PNG”,
“base64”: “XXXXXXXXXXXXXXXXXXXXXXXXXXXX”
}
}
}

On Bubble:


One important thing is that this same API used to work. After an update to version v4, it stoped working on bubble and continued to work on postman.

I am thinking that it may be blocking the bubble request for some reason that I don’t understand.

Another information:
Now, there is also this disclaimer in the API documentation:
Access to APIs via gateway…gov.br will only be accepted with TLS 1.2 and TLS 1.3 Security Protocols. TLS 1.0 or 1.1 security protocols will not provide integration with the service. More information: Help Center - Turning off TLS 1.0 and 1.1 protocols.

hey, you free lets debug it togather

Looks like you will be better served by checking with Bubble support regarding TLS compatibility.