Page 1 of 1

DNS error on tls connection

Posted: Mon Nov 27, 2023 7:33 pm
by aurosoares
I implemented a https request to a server on internet, this server was validated using Postman, however, when I try to connect in this server with my ESP32, this error raise:

E (32607) esp-tls: couldn't get hostname for :exemple.com: getaddrinfo() returns 202, addrinfo=0x0
E (32607) esp-tls: Failed to open new connection


In wireshark I can see that this is a non-resolution for domain name.

Any suggestion to solve this problem?

I followed the https request on github esp32 as a template for my code.