question

Haris Sevinc avatar image
Haris Sevinc asked

InvalidAPIEndpoint Problem

Hi there, im having this issue when i try to login with custom id. I tried a few solution but still doesnt work;

public void Login(string titleId)
        {
            LoginWithCustomIDRequest request = new LoginWithCustomIDRequest()
            {


                TitleId = titleId,
                CreateAccount = true,
                CustomId = SystemInfo.deviceUniqueIdentifier,
               
            };


            PlayFabClientAPI.LoginWithCustomID(request, (result) => {
               // PlayFabId = result.PlayFabId;
               // Debug.Log("Got PlayFabID: " + PlayFabId);


                if (result.NewlyCreated)
                {
                    Debug.Log("(new account)");
                }
                else
                {
                    Debug.Log("(existing account)");
                }
                NetworkManager.THIS.IsLoggedIn = true;
            },
                (error) => {
                    Debug.Log(error.ErrorMessage);
                });
        }
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

·
Citrus Yan avatar image
Citrus Yan answered

Looks you are doing it in a Unity Project, is that right? InvalidAPIEndpoint usually means that the title id is not set correctly because the URL for all calls begins with [TitleID].playfabapi.com, please check whether the title id is set correctly in your project. https://docs.microsoft.com/en-us/gaming/playfab/sdks/unity3d/quickstart#set-your-title-settings

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.