Error in a http request (SOLVED)

#1

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

0 Likes

#2

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

1 Like

#3

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

0 Likes

#4

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

#5

thanks

0 Likes

#6

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

3 Likes