question

SHENRICHENG avatar image
SHENRICHENG asked

Error\n at Object.server_request (Script:180:24)

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

CloudScript
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.

Citrus Yan avatar image Citrus Yan commented ·

May I know your title id and the CloudScript function that's having this error?

0 Likes 0 ·
SHENRICHENG avatar image SHENRICHENG Citrus Yan commented ·

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)"
    }
0 Likes 0 ·

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

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.

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.