question

leeyencuhn avatar image
leeyencuhn asked

client update userdata fail to receive data

After calling updateuserdata, callback function receive error message "client update userdata fail to receive data" on Android platform. This problem occur in some mobiles, but will not occur in some mobiles. My title is 322F.
Here is my code:

        public void SetNewTutorialProgress(int index)
        {
            AppManager.instance.tutorailProgress = AppManager.instance.tutorailProgress.Substring(0, index) + "1" + AppManager.instance.tutorailProgress.Substring(index + 1, AppManager.instance.tutorailProgress.Length - (index + 1));
            SetUserTutorialProgress();
        }


        public void SetUserTutorialProgress()
        {
            UpdateUserDataRequest request = new UpdateUserDataRequest();
            request.Data = new Dictionary<string, string>();
            string serializeData = PlayFabSimpleJson.SerializeObject(AppManager.instance.tutorailProgress);
            request.Data.Add("tutorialProgress", serializeData);
            PlayFabClientAPI.UpdateUserData(request, OnGetTutorialProgress, AppManager.instance.OnLoginError);
            Debug.Log("UpdateUserData SetUserTutorialProgress");
        }


        public void OnLoginError(PlayFabError error)
        {
            errorMsg.SetActive(true);
            errorMsg.GetComponentInChildren<Text>().text = error.ToString();
            Debug.LogError(error);
        }
10 |1200

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

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

We are unable to retrieve this error through this message. Is there any error code? Or could you please tell us did these API calls return “400 bad request”?

2 comments
10 |1200

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

leeyencuhn avatar image leeyencuhn commented ·

Yes, httpcode is 400, status is badrequest, error is 1123

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang leeyencuhn commented ·

Thanks for the clarification. As this thread LoginWithSteam: Failure when receiving data from the peer said, "Failure when receiving data from the peer" indicates a more fundamental networking issue from the client to the server. One common cause of this would be a proxy that's refusing the packets. The issue is either with their ISP or their local machines. In your case, it seems the issue occurs on some specific android devices. PlayFab has little can do for help.

0 Likes 0 ·

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.