I am writing a secondary client that will not be distributed, for testing, and need to be able to update some stats from the client. I don't want to enable clients being able to submit stats, so I created a cloudscript to do the update, with this client sending in the stats. The actual released game wont make any calls to this script, and once the game is going, and people are playing it, I will most likely be removing it, but until then, I need it to work.
When I attempt to call the cloudscript from the client, it fails with the following error in Visual Studio...
Error = {PlayFab.ClientModels.ScriptExecutionError}
Error = "CloudScriptAPIRequestError"
Message = "The script called a PlayFab API, which returned an error. See the Error logs for details."
StackTrace = "Error\n at handlers.UpdatePlayerStats (CFB2-main.js:400:23)"
The logs show the following...
"apiError": { "code": 400, "status": "BadRequest", "error": "InvalidParams", "errorCode": 1000, "errorMessage": "Invalid input parameters", "errorHash": null, "errorDetails": { "Statistics": [
However, copying the data being sent from the client, and pasting it into a cloudscript call from the player screen in the dashboard works. The update goes through as expected.
The TitleID I am working on is CFB2 and I am currently trying with Revision 141.
Any idea what I might be doing wrong?
Any help is appreciated.
-Larry