Problem with Playfab requests

So I have some weird problems with Playfab.
Looks similar to the previous problems before 1.2.161 .

Along all devices (including Desktop) we get a lot of these errors:
ERROR:SCRIPT: Unable to create HTTP connection to 'https://TitleId.playfabapi.com/Client/LoginWithCustomID?sdk=DefoldSdk_0.59.190625'. No route to host? DEBUG:SCRIPT: { --[[0x10bcefed0]] error = "ServiceUnavailable", errorCode = 1123, code = 0, status = 0, errorMessage = "Could not deserialize reseponse from server: " }

Most of the time we actually can see that the http call went through but the response is not handled.

BUT also (and this could be nonrelated issue) on a certain device (Razor 1) we constantly get the following error:

ERROR:SCRIPT: HTTP request to 'https://78CC.playfabapi.com//Client/GetPlayerCombinedInfo' failed (http result: -1 socket result: -3)

Feels really shaky and it’s hard to understand why as we can without problem use internet in any other app.

@jhonny.goransson looked into this recently. Jhonny, can you share your conclusions?

@andreas.strangequest Can you try http:// instead of https://

Yeah, the issues i investigated were twofold between ssl and DNS, but try using http and not https first. If that doesnt work we can look at it in more detail!

3 Likes

Been trying everything now. I just can confirm that it is just throwing errors randomly on very stable internet.
Unfortunately Playfab doesn’t accept http at all it seems (getting immediate error).

The logs I get in Defold looks just like this:

ERROR:DLIB: mbedtls_ssl_handshake returned -0x6800
ERROR:DLIB: SSL handshake timeout
ERROR:SCRIPT: HTTP request to ‘https://78CC.playfabapi.com/Client/GetCatalogItems?sdk=DefoldSdk_0.66.191015’ failed (http result: -1 socket result: -3)

I cannot find any way to reproduce it properly. It just happens sometimes (could be at first login to Playfab or later in any nonspecific request)

This is a lead at least. I’ll take a look.

1 Like

I haven’t a problem with request, but just saw a follow error when closing an app during request to Playfab

Windows 10. Defold 1.2.166

1 Like

Thanks. We will not take immediate action since this happens on shutdown. Do you know if it happens on other OS than Windows?

Created https://github.com/defold/defold/issues/4721