question

henriquecarrasco1 avatar image
henriquecarrasco1 asked

Weird Bug on Login with Email: "Service Unavailable"

Ok, so aweird bug is happening when I build the game for windows and try to login (using email). I receive a response code 200 but the callback fall into OnLoginFail. On Unity editor it runs ok. Login, authenticate on photon and even join the room without a problem.

here is what the playstream tells me:

{
    "EventName": "player_logged_in",
    "Platform": "PlayFab",
    "PlatformUserId": "7ABBD86A0455A5D9",
    "Location": {
        "ContinentCode": "SA",
        "CountryCode": "BR",
        "City": "Sumare",
        "Latitude": -22.8,
        "Longitude": -47.2833
    },
    "EventNamespace": "com.playfab",
    "EntityType": "player",
    "Source": "PlayFab",
    "TitleId": "D115",
    "EventId": "946ecf9012c544af8751669646652b50",
    "EntityId": "7ABBD86A0455A5D9",
    "SourceType": "BackEnd",
    "Timestamp": "2017-04-28T20:32:51.1797276Z",
    "History": null,
    "CustomTags": null,
    "Reserved": null
}

here is the response I receive:

Error ServiceUnavailable HttpStatus OK: {"code":200,"status":"OK","data":{"SessionTicket":"7ABBD86A0455A5D9-0-0-D115-8D48E75BDC15E11-A45700F55CB41169.E200A68837B7CA32","PlayFabId":"7ABBD86A0455A5D9","NewlyCreated":false,"SettingsForUser":{"NeedsAttribution":false},"LastLoginTime":"2017-04-28T20:30:58.703Z"}}
photonAuthentication
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

We've seen this show up a few times. The causes in the past have been having CompressApiData set, and incompatible plugins (with Unity, specifically). Here are the steps to take:

  • Start a new project
  • Get the latest SDK from GitHub and install it - install no other plugins, just your project code and the PlayFab SDK
  • Make sure that PlayFabSettings.CompressApiData is set to false
  • Add any other plugins you need one at a time, and test after each

The response you're getting back says that the call was successful, so from our side, it seems like the call worked fine. So somehow, your code is being directed into your error handler from a successful response. You may want to have a look at this post as well (https://community.playfab.com/questions/10171/kongregate-login-service-unavailable.html). What they found was that Beebyte (a code obfuscator in Unity) was screwing up their runtime. If that's what you're seeing, adding the PlayFab namespace to the ignore list for the obfuscator should fix the issue.

1 comment
10 |1200

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

henriquecarrasco1 avatar image henriquecarrasco1 commented ·

Thank you Brendan. Obfuscator was the problem!

0 Likes 0 ·

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.