Error in a http request (SOLVED)

I have this error

WARNING:DLIB: SSL handshake failed (-1)
ERROR:SCRIPT: HTTP request to ‘https://uinames.com/api/’ failed (http result: -1 socket result: -1000)

local function http_result(self, _, response)
pprint(response.status)
pprint(response.response)
pprint(response.headers)
end

local function request(self)
http.request(“https://uinames.com/api/”, “GET”, http_result)
end

What type of handshake does the site use?
We have listed the supported ones in the documentation for http.request()

1 Like

I dont know . Cant defold connect to all web services?

The current solution doesn’t support all SSL handshake ciphers. This is a limitation that hasn’t been a problem in the past, but it seems like more and more cloud hosted services have upgraded to ciphers that aren’t supported by the version of axTLS that we are using. We will discuss this on Monday and hopefully be able to provide a solution in the next release.

1 Like

thanks

We replaced the old SSL library with the new one mbedTLS.
It should work fine starting 1.2.162

3 Likes