DNS error on tls connection

aurosoares
Posts: 4
Joined: Thu Sep 21, 2023 2:51 pm

DNS error on tls connection

Postby aurosoares » Mon Nov 27, 2023 7:33 pm

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.

Who is online

Users browsing this forum: No registered users and 235 guests