When I run the CloudScript function from the Player dashboard I used to get the resulting JSON object.
However today I am just getting TONS of empty arrays in the return. Is CS undergoing maintenance?
When I run the CloudScript function from the Player dashboard I used to get the resulting JSON object.
However today I am just getting TONS of empty arrays in the return. Is CS undergoing maintenance?
This could be a known issue. You mentioned that you used to get the resulting JSON object, when was that time? To work around, you could use the Postman to call the ExecuteCloudScript API, which should return the proper data according to my test. Please note that it is not efficient to run the CloudScript from the Player Dashboard, it is recommended to use the Postman to call your CloudScript instead.
@Rick Chen
It was a 2 weeks ago. I was able to get "Function Result: " to print the results my methods returned. This allowed me to proto-type far faster than Postman since I could jump between players and test via the dev portal.
Here's what a result looks like:
JSON object has
2 fields that are a number and string.
{"Result" : 0, "Message" : 'Hello World' }
{
"FunctionResult": [ [ [] ], [ [] ] ], "Logs": [], "ExecutionTimeSeconds": 0.0004885, "MemoryConsumedBytes": 1880, "APIRequestsIssued": 0, "HttpRequestsIssued": 0, "Error": null }
Could you try using the log.info() to print the results in "Logs" instead in your CloudScript?
I get this:
{
"FunctionResult": [ [ [] ], [ [] ] ], "Logs": [ { "Level": "Info", "Message": "{\"ResultCode\":0,\"Message\":\"Hello World\"}", "Data": null } ], "ExecutionTimeSeconds": 0.000431, "MemoryConsumedBytes": 2584, "APIRequestsIssued": 0, "HttpRequestsIssued": 0, "Error": null }
Sorry for the inconvenience. The prioritization on this issue is based on a combination of severity and feedback. This issue may not have a high priority and we don't have ETA on when it will be fixed. If there is significant impact caused by this issue, you could let us know and I will report to the corresponding team and they may raise the priority on fixing this issue. Thanks for your understanding.
4 People are following this question.
Get players in segment count Via cloud script and update title data
GetPlayerCombinedInfoRequest no longer includes DisplayName in response
Why is UpdateUserReadOnlyData Adding To The Wrong Data Key
Server.DeletePlayer not working as expected
title_player_account PlayFabId does not work with cloud script