question

WolfedGamingVr avatar image
WolfedGamingVr asked

/client/LoginWithCustomID: HTTPS/1.1 409 Conflict

This is the script I am using:

using System.Collections; using System.Collections.Generic; using UnityEngine; using PlayFab; using PlayFab.ClientModels; using UnityEngine.SceneManagement; using System;

public class PlayFabManager : MonoBehaviour {

 //private string LocalPlayFabID;

 // Start is called before the first frame update
 void Start()
 {
     Login();
 }

 void Login()
 {
     var request = new LoginWithCustomIDRequest
     {
         CustomId = SystemInfo.deviceUniqueIdentifier,
         CreateAccount = true
     };
     PlayFabClientAPI.LoginWithCustomID(request, OnSuccess, OnError);
 }

 void OnSuccess(LoginResult result)
 {
     Debug.Log("Successful login/account create!");

     PlayFabPlayerLoggedIn();

     string pUsername = PlayerPrefs.GetString("username");

     PlayFabClientAPI.UpdateUserTitleDisplayName(new UpdateUserTitleDisplayNameRequest
     {
         DisplayName = pUsername
     }, delegate (UpdateUserTitleDisplayNameResult result)
     {
         Debug.Log("Display Name Changed!");
     }, delegate (PlayFabError error)
     {
         Debug.Log("Error");
         Debug.Log(error.ErrorDetails);
     });

     //LocalPlayFabID = result.PlayFabId;

 }

 void OnError(PlayFabError error)
 {
     Debug.Log("Error while logging in/creating account!");
     if (error.Error == PlayFabErrorCode.AccountBanned)
     {
         Debug.Log("PLAYER IS BANNED");

         {

         }
         SceneManager.LoadScene("Bans");
     }
     Debug.Log(error.GenerateErrorReport());
 }

 public virtual void PlayFabPlayerLoggedIn()
 {

 }

 //public override void OnConnectedToMaster()
 //{
 //var Hash = PhotonNetwork.LocalPlayer.CustomProperties;
 //Hash.Add("PlayFabPlayerID", LocalPlayFabID);
 //Debug.Log(PhotonNetwork.LocalPlayer.CustomProperties["PlayFabPlayerID"]);
 //}

}

Player Data
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

·
Infer Wang avatar image
Infer Wang answered

In general, you're going to run into this in cases where you're making multiple calls without waiting on the responses. You may call it individually if you’ re in this situation.

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.