question

nicloay avatar image
nicloay asked

Defold lua LoginWithCustomID failed (http result: -1 socket result: -5)

I'm starting game from the editor (not from the browser). and most of times i can't login and getting this error


ERROR:SCRIPT: HTTP request to 'https://MY_KEY.playfabapi.com/Client/LoginWithCustomID' failed (http result: -1  socket result: -5)
DEBUG:SCRIPT: 
{
  status = 0,
  response = ,
  headers = {
  }
}

DEBUG:SCRIPT: Login Failed: Could not deserialize reseponse from server:
Leaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The issue is that where you see MY_KEY, that should be the Title ID for your game. If you're using our SDK, you should make sure to set your Title ID in PlayFabSettings.titleId, as shown in the readme (section 5 - https://github.com/PlayFab/LuaSdk).

5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nicloay avatar image nicloay commented ·

I changed my title ID only for this post.

Sorry that i didn't provide info in the first answer, i had some issue with formatting.

Moreover. issue happens only if you start and build in editor. if you build HTML and launch everything is ok.

0 Likes 0 ·
brendan avatar image brendan nicloay commented ·

I guess I'm not clear on the issue, then. Are you seeing a response error from PlayFab for the call, and if so, what are the details of both the call and the response?

0 Likes 0 ·
nicloay avatar image nicloay brendan commented ·

I see that login is success in the playfab dashboard, but response is not handled in defold engine properly - it show socket error in defold console. And i hasn't seen this issue in final html build - so maybe issue just in editor.

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.