question

pompeypaul avatar image
pompeypaul asked

C# "Getting Started" code never returns

I have followed the getting started tutorial which seems to work however the loginTask is never flagged as completed.

In playfab I can see that the user does actually log in. 

Debugging through I can see that PlayfabSysHttps.cs never returns from here:

                    httpResponse = await _client.PostAsync(fullUrl, postBody);
                    httpResponseString = await httpResponse.Content.ReadAsStringAsync();

After the PostAsync it just hangs and never returns.
Authentication
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hernando avatar image Hernando commented ·

If following this Guise: "CSharp Getting Started", that should work well.

Did you modify any code from the guise? If so, please post the modified code that will help to solve the question of why the error occurred. (Besides, please make sure you create the project from the template console application.)


0 Likes 0 ·

1 Answer

·
pompeypaul avatar image
pompeypaul answered

Hello,

Not sure why it wasn't working. I guess my use case may have been slightly unusual as in I was doing this from a plugin. However I fixed it by putting the test code into it's own thread and create a job queue for it. Then went through fine.

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.