I used your example script
using PlayFab; using PlayFab.ClientModels; using UnityEngine; public class PlayFabLogin : MonoBehaviour { public void Start() { //Note: Setting title Id here can be skipped if you have set the value in Editor Extensions already. if (string.IsNullOrEmpty(PlayFabSettings.TitleId)) { PlayFabSettings.TitleId = "144F3"; // Please change this value to your own titleId from PlayFab Game Manager } var request = new LoginWithCustomIDRequest { CustomId = "GettingStartedGuide", CreateAccount = true}; PlayFabClientAPI.LoginWithCustomID(request, OnLoginSuccess, OnLoginFailure); } private void OnLoginSuccess(LoginResult result) { Debug.Log("Congratulations, you made your first successful API call!"); } private void OnLoginFailure(PlayFabError error) { Debug.LogWarning("Something went wrong with your first API call. :("); Debug.LogError("Here's some debug information:"); Debug.LogError(error.GenerateErrorReport()); } }
and got these problems:
/Client/LoginWithCustomID: HTTP/1.1 418 I'm a teapot UnityEngine.Debug:LogError (object) PlayFabLogin:OnLoginFailure (PlayFab.PlayFabError) (at Assets/scripts/PlayFabLogin.cs:25) PlayFab.Internal.PlayFabUnityHttp:OnError (string,PlayFab.Internal.CallRequestContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:235) PlayFab.Internal.PlayFabUnityHttp/<Post>d__12:MoveNext () (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:149) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
Here's some debug information: UnityEngine.Debug:LogError (object) PlayFabLogin:OnLoginFailure (PlayFab.PlayFabError) (at Assets/scripts/PlayFabLogin.cs:24) PlayFab.Internal.PlayFabUnityHttp:OnError (string,PlayFab.Internal.CallRequestContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:235) PlayFab.Internal.PlayFabUnityHttp/<Post>d__12:MoveNext () (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:149) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)