I recently integrated the Java SDK into my project but have been running into an issue when I try to login. Here is the code I use to Login:
PlayFabSettings.TitleId = GameConstants.PLAYFAB_TITLE;
//Login to playfab
LoginWithCustomIDRequest request = new LoginWithCustomIDRequest();
request.CustomId = customUserID;
request.CreateAccount = true;
request.TitleId = GameConstants.PLAYFAB_TITLE;
PlayFabResult<LoginResult> result = PlayFabClientAPI.LoginWithCustomID(request);
I get the following error: "Failed to post to server: https://XXXX.playfabapi.com/Client/LoginWithCustomID"
The ID(XXXX) in the URL is correct but I still get that error.
I tried posting directly with the same settings and it worked. So either I did something wrong using the Java SDK or there may be an issue with the SDK. It is probably the former but I just want to make sure.