I was trying to get playerdata from the top 30 of a statistic table, and i ran into this error when executing the cloudscript. Is there a way to exceed the request count? and what is the current request count?
,Hi, i am trying trying to execute a cloud script that return some playerdata from 30 of my players in my leaderboard. And i ran into this error. Is there a way to exceed the request count?
Answer by Brendan · Sep 18, 2018 at 08:42 PM
Iterating across a list of players to query data from all of them is always going to be a problem, as it generates an excessive number of API calls per player. That kind of behavior could get your title throttled or blocked, if it is considered abusive. The design of the leaderboard service is that it returns the profile data you request for the user, which can include their other statistics, tags, etc. That's the data we would recommend using to build your richer leaderboard experience.
Ok. Gotcha will change the way we store some data and make it work
Answer by Jay Zuo · Sep 18, 2018 at 09:58 AM
The number of PlayFab API requests made from a CloudScript function called by the ExecuteCloudScript API is limited to 15.
To view the usage limits, you can login to the PlayFab Game Manager. Visit the "Settings" page, then click on the "Limits" tab. And if you want to upgrade this limit, you can contact PlayFab to learn about custom limits.
Email Templates variables 1 Answer
best practice for saving statistics for leaderboards 1 Answer
Leaderboard reset at custom time 1 Answer