question

sammy89 avatar image
sammy89 asked

problem with playfab unity sdk

I just imported the PlayFab Unity Editor Extensions Asset Package and am getting the following errors when i try sign in to playfab from the unity editor:

PlayFab EditorExtensions: Caught an error:Invalid JSON string UnityEngine.Debug:LogError (object) PlayFab.PfEditor.PlayFabEditor:StateUpdateHandler (PlayFab.PfEditor.PlayFabEditor/EdExStates,string,string) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:332) PlayFab.PfEditor.PlayFabEditor:RaiseStateUpdate (PlayFab.PfEditor.PlayFabEditor/EdExStates,string,string) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:247) PlayFab.PfEditor.PlayFabEditorHelper:SharedErrorCallback (PlayFab.PfEditor.EditorModels.PlayFabError) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorHelper.cs:127) PlayFab.PfEditor.PlayFabEditorAuthenticate/<>c:<OnLoginButtonClicked>b__14_1 (PlayFab.PfEditor.EditorModels.PlayFabError) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorAuthenticate.cs:299) PlayFab.PfEditor.PlayFabEditorHttp:OnWwwError (System.Action`1<PlayFab.PfEditor.EditorModels.PlayFabError>,string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:130) PlayFab.PfEditor.PlayFabEditorHttp/<>c__DisplayClass2_0`2<PlayFab.PfEditor.EditorModels.LoginRequest, PlayFab.PfEditor.EditorModels.LoginResult>:<MakeApiCall>b__1 (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:95) PlayFab.PfEditor.PlayFabEditorHttp/<Post>d__7:MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:177) PlayFab.PfEditor.EditorCoroutine:Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

Can someone help?

sdks
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

·
Made Wang avatar image
Made Wang answered

Did you log in with your Microsoft account? Refer to this thread, currently you cannot log in PlayFab EdEx with your Microsoft account.

In addition, I cannot reproduce this problem. What is the version of your PlayFab EdEx and Unity?

There have been similar problems in the old version of PlayFab EdEx, but it has been fixed in the latest version. You can try to manually update PlayFab EdEx to the latest version and download the source code directly from github to ensure that it is the latest.

Another thing to clarify is that PlayFab EdEx is only used to help you configure the PlayFab environment and is not mandatory. You can download the latest PlayFab SDK source code from the above URL (don't import the UnitySDK.unitypackage, you can see that it is not the latest). Then refer to Installing the PlayFab SDK for Unity - PlayFab | Microsoft Docs for manual configuration.

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.

sammy89 avatar image sammy89 commented ·

its ok, i got it working in the end. Thanks

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.