question

allen-1 avatar image
allen-1 asked

PlayFabSDK suddenly throwing JsonSerialization exception preventing logins for iOS users when attempting to deserialize HttpResponseObjects

As of 4 hours ago, (25 Aug 2020 @ 1839 EST), our iOS users are unable to log into our game because the PlayFabSDK is throwing an exception attempting to deserialize a JSON that is sent back after calling PlayFabClientAPI.LoginWithIOSDeviceID or PlayFabClientAPI.LoginWithCustomID when on an iMac. This is using the PlayFab SDK for Unity. Attached is stacktrace.txt. While digging into the response string that is passed to PlayFabUnityHttp.OnResponse(), it seems there is an extraneous character that is passed in between the first double-quote character and the opening curly brace. It is a character that does not display in the editor (some type of control character or strange unicode character maybe?). When I deleted that character in the response string and continued execution, the SDK no longer threw an exception. There is no exception thrown at all it seems in the Android builds, but the iOS builds will throw an exception. We have not made any changes to our code, nor to our backend in PlayFab. This just started happening to our iOS users. To recreate the issue, I attempted to log in with a custom ID that was not present in our database. The response string that was sent back was had the correct error except for an extraneous invisible character between that first double-quote and opening brace that caused the exception to be thrown. Is there something that has changed on PlayFab's side that modified the response string that is sent on a LoginWithiOSDeviceID or LoginWithCustomID? Our iOS players are currently unable to log in due to this issue.

stacktrace.txt (1.3 KiB)
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

·
allen-1 avatar image
allen-1 answered

The issue has now been resolved.

10 |1200

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

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.