Question from a developer:
In testing my Cloud Script, I'm getting back an error with the ValidationError details "Error reading string. Unexpected token: StartObject. Path 'Logs[0].Message', line 1, position 74." What can cause this?
Question from a developer:
In testing my Cloud Script, I'm getting back an error with the ValidationError details "Error reading string. Unexpected token: StartObject. Path 'Logs[0].Message', line 1, position 74." What can cause this?
The issue is that an attempt is being made to log something which isn't a string. For example, if your code does something like this:
var response = server.GetUserAccountInfo(
{ "PlayFabId": currentPlayerId }
);
log.info(response);
That would cause this error. The fix is to change the log line to:
log.info(JSON.stringify(response));
No one has followed this question yet.