Hey folks,
My cloudscript Azure Function is failing with an error due to this specific line of code:
PlayFabResult<GetUserDataResult> userData = await PlayFabServerAPI.GetUserDataAsync( new GetUserDataRequest() { PlayFabId = currentPlayerId, Keys = new List<string>() { "global" } } );
I'm trying to get the player's UserData, but for some reason this line errors out. I noticed someone post in the forums with a similar problem, and he was told to Wait on the returned task. My function doesn't seem to return a task, but instead a PlayFabResult which cannot be waited on.
Any help would be much appreciated, I'm almost through this nightmare that is Azure Functions.
-Matt