lango
started a topic on Thu, 03 September 2015 at 7:37 PM
I've updated the PlayFab unity package to the latest commit from September 1st.
Without changing my code from before the commit, I now receive "Error 400: Invalid input parameters" when calling PlayFabClientAPI.UpdateUserData
To test that the format of UpdateUserDataRequest is correct, I setup a call with fake data.
public void FakeUserData ()
{
Debug.Log ("FakeUserData");
Dictionary<string,string> data = new Dictionary<string,string> ();
data ["fake_key"] = "fake_value";
PlayFabClientAPI.UpdateUserData (
new UpdateUserDataRequest {
Data = data,
Permission = UserDataPermission.Public
},
OnUpdateUserDataSuccess,
OnError);
}
The call returns this error log.
PlayFabError 400: Invalid input parameters
UnityEngine.Debug:Log(Object)
Managers.PlayFabManager:OnError(PlayFabError) (at Assets/Scripts/Managers/PlayFabManager.cs:287)
PlayFab.<UpdateUserData>c__AnonStoreyA7:<>m__E4(String, PlayFabError) (at Assets/PlayFabSDK/Public/PlayFabClientAPI.cs:1470)
PlayFab.Internal.<MakeRequestViaUnity>c__Iterator5:MoveNext() (at Assets/PlayFabSDK/Internal/PlayFabHTTP.cs:254)
Do you know what might be the problem?