Hi Playfab,
Error\n at Object.server_request (Script:180:24)\n at Object.server.UpdateUserInternalData (Script:622:79)......
My game will inevitably fail after the player performs a certain operation 5~6 times, that is, the same code is executed the first few times without any problem, but the above error will definitely occur after this number of times.
By the way, this is an error in the CloudScript
Regards
May I know your title id and the CloudScript function that's having this error?
ID: 28991
function:handlers.OpenBox
"Error": { "Message": "The script called a PlayFab API, which returned an error. See the Error logs for details.", "Error": "CloudScriptAPIRequestError", "StackTrace": "Error\n at Object.server_request (Script:180:24)\n at Object.server.UpdateUserInternalData (Script:622:79)\n at UpdateUserInternalData_HaveItems (28991-main.js:5599:12)\n at MinusUserItemOne (28991-main.js:3284:9)\n at handlers.OpenBox (28991-main.js:2755:16)\n at Object.invokeFunction (Script:116:33)" }
The specific error you were hitting is the "DataUpdateRateExceeded" error, which generally means that you were attempting to update player data too frequently, please check out these thread for more info:
UpdateUserData dataupdaterateexceeded - Playfab Community
What is the best practices to update Player Data frequency? - Playfab Community
Basically, what you need to do is to find a way to reduce the player data update frequency.