"ExecutionResult": { "ExecutionResult": { "ExecutionTimeSeconds": 0.0378921, "ProcessorTimeSeconds": 0.015625, "MemoryConsumedBytes": 70672, "HttpRequestsIssued": 0, "APIRequestsIssued": 2, "Revision": 4, "FunctionName": "onbuyitem", "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.UpdateUserInventoryItemCustomData (Script:624:90)\n at handlers.onbuyitem (3F4CF-main.js:96:20)\n at Object.invokeFunction (Script:116:33)" }, "Logs": [ { "Message": "PlayFab API request error", "Data": { "apiError": { "errorMessage": "Invalid input parameters", "errorDetails": null, "errorCode": 1000, "errorHash": null, "status": "BadRequest", "error": "InvalidParams", "code": 400 }, "request": { "ItemInstanceId": "DE79E90148E119A8", "PlayFabId": "D4056A9087432FCF", "Data": { "stat": "{\"grade\":1, \"key\":7}" } }, "result": null, "api": "/Server/UpdateUserInventoryItemCustomData" }, "Level": "Error" } ] }
As you can see above, there's an error.
I was going to put the value in the custom data of the item.
Error is coming out, but the value is inserted as normal in custom data.
I care about errors to ignore. What's wrong with this?