Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Denzie Gray · May 26, 2021 at 02:44 AM · CloudScriptPlayer Data

CloudScript Error in Player Dashboard

@Brendan

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?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Rick Chen · Aug 05, 2021 at 06:52 AM

@Denzie Gray

Here is an update that the issue has been fixed. According to my test, executing CloudScript on [Player]->[CloudScript] page returned the result correctly. Please try again and let me know if the issue still exists.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Rick Chen · May 26, 2021 at 07:45 AM

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.

Comment

People who like this

0 Show 7 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Denzie Gray · May 26, 2021 at 03:10 PM 0
Share

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

avatar image Denzie Gray · May 26, 2021 at 03:24 PM 0
Share

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
}
avatar image Rick Chen ♦ Denzie Gray · May 27, 2021 at 08:10 AM 0
Share

Could you try using the log.info() to print the results in "Logs" instead in your CloudScript?

avatar image Denzie Gray Rick Chen ♦ · May 27, 2021 at 01:58 PM 0
Share

@Rick Chen

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
}
Show more comments
Show more comments
avatar image Rick Chen ♦ Denzie Gray · May 31, 2021 at 09:50 AM 0
Share

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.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    title_player_account PlayFabId does not work with cloud script 1 Answer

    GetPlayerCombinedInfoRequest no longer includes DisplayName in response 2 Answers

    Server.DeletePlayer not working as expected 1 Answer

    Get players in segment count Via cloud script and update title data 1 Answer

    Can't 100% delete player profiles/accounts 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges