Hi, I’m creating a functionality to permanently delete all player data when a user requests that their Account be deleted (a feature required by Apple).
For this, I have to first delete all the player’s data from Leaderbards and Cloud Save, then delete the account from the Player Management service.
When calling this API:
I am getting a timeout whenever I call it:
{
"status": 504,
"title": "Gateway Timeout",
"requestId": "XXXX-XXXXX-XXXXXX" (id replaced for security)
}
Is anyone having the same problem?
Edit: I just noticed that even with this error (which takes about 20 seconds), the player score is getting deleted from the live leaderboards. My game has 69 leaderboards, could that be the reason?
Hi there,
Hmm if you can DM me the Project ID we will investigate.
That number of Leaderboards shouldn’t be the issue, which have some games with hundreds (even thousands!) and some very large leaderboards. I’m not sure why this would be timing out and if that’s indicative of a gateway issue or a service specific issue - I’m not aware of any general issues at the moment - but happy to take a look to try and understand what’s going on.
Best regards,
Iain Collins
Following up on this:
We took a look and were able to identify the project, as it was the only one we could see with this issue. The usage for it all seems perfectly normal and this shouldn’t have happened, but I can see a number of failed calls to that endpoint for the project this morning.
This might point to a bug in the service code that is causing it not to return correctly after deleting data in some cases for an unknown reason, and that is translating to a timeout.
We will look into this and let you know what we find!
Best regards,
Iain
Thanks for investigating the issue, @IainUnity3D.
Once you have a fix, please let us know and I can test it again.
1 Like
Hi there,
Update to see we are still investigating this one.
The issue seems to be specific to the purge endpoint to delete scores across all live leaderboards (i.e. as opposed to the call to delete a player from a specific leaderboard).
While the project has a number of leaderboards it has a very reasonable number and this is not typical behaviour. We are reviewing what we should do about what’s causing this to understand if there is a specific trigger for this issue or if it makes sense to increase the timeout periods we are allowing for or if we make this specific operation asynchronous.
A workaround right now could be to call the delete operation to remove a player from each individual leaderboard specifically, but I appreciate you shouldn’t have to do that and do I expect us to address this issue.
Apologies for experiencing this issue and for not having more information yet, I’ll follow up again next week when I know more.
Best regards,
Iain
Thanks for keeping us updated, @IainUnity3D
The nice thing is that I created the User Account deletion in a way that it calls my RestAPI because I did not want to embed my Admin Api keys into the App for obvious reasons
.
On my backend code, I’m calling this live leaderboards purge service in an async (without waiting) way, and calling the other services to delete the CloudSave (by waiting for the task to finish, since there is no error on these services)
If no error on the CloudSave is detected, my App receives the success request (even when I do not know what happened with the leaderboards purge). Then it completes the Account deletion by calling the standard Authentication SDK API.
That way, when you guys fix the problem, it will work out of the box for my App too. 
Later, I will learn how to do all of this on CloudCode, to avoid depending on my backend server.
1 Like
Hey there
This is still an issue, i am getting 20 second timeout into a 504 gateway issue
It will still technically work so with the amount of leaderboards we have its better than trying to do all of them but this is causing my purge script to take 30 hours to go through all our cheatingh users to ban them
here is a copy of my response I get as an example
{
“status”: 504,
“title”: “Gateway Timeout”,
“requestId”: “7753a0a7-c853-4e21-af10-5a03c81173a8”
}
hi @IainUnity3D, do you have any news on this one?
Hi there!
We actually have an improvement to the service in progress at the moment which should address this specific issue. It may land this week or next week - I’ll post back here with an update.
Best regards,
Iain
1 Like
Hi all!
Quick update on the Delete Player Score From All Live Leaderboards (/purge) endpoint.
We were alerted to increased latency earlier this week that persisted over the last few days.
We’ve deployed improvements today and are actively monitoring performance.
If you’re still seeing delays or timeouts, please reach out!
Thanks,
Jamie
1 Like
Thanks from bringing news @IainUnity3D and @Unity_Jamie.
I just tested deleting data from a temporary player (which had ranking entry in only one of my 99 leaderboards) using the Delete Player Score From All Live Leaderboards (/purge) endpoint, and this is the response showing it took 10.61s to finish.
Also, checking the leaderboard where this user had ranking entry, the entry was deleted successfully.
That 10.09s DNS lookup is very suspicious. Do you have a misconfigured or unreachable DNS server on your side?
From the leaderboards service we’re seeing a response time of 173ms on that request. We have a few other overheads of course but nothing that adds any significant time.
Thanks,
Jamie
Oh, it could be that my VPN was active at that time.
My postman was still open and I just re-sent the request (not sure if it would be different because there is no data of this player anymore on the learderboards):