Hello,
I am trying to follow the Getting Started tutorial and am stuck on the Make an API Call part. I am trying to log in, but it does not complete. I have seen the posts on this Playfab question but those did not work for me. I am using the C# SDK and have tried the following:
bool _running = true; PlayFabSettings.TitleId = "1234"; // using my actual ID in place of the 1234 var request = new LoginWithCustomIDRequest { CustomId = "11111111111111", CreateAccount = true }; // used my CustomID here in place of the 1111111111111 var loginTask = PlayFabClientAPI.LoginWithCustomIDAsync(request); loginTask.ContinueWith((result) => { _running = false; }); while (_running) { Console.WriteLine("Waiting for result..."); }
I have also tried the exact code (copy/paste) from the CSharp Getting Start documentation on how to do this, and that does not work either.
When I run my code using either of these, it just sits and does not finish. When I check the SDK, it appears to be getting stuck at this line in PlayFabClientAPI.cs, method LoginWithCustomIDAsync:
var httpResult = await PlayFabHttp.DoPost("/Client/LoginWithCustomID", request, null, null, extraHeaders);
I am not sure how to proceed. I have already read that it could be a "deadlocking" issue, though I am unsure where that could be occurring or how to resolve given that I've tried everything I mentioned above. Please advise.
,