Recently we have been cleaning inactive players by removing them through server api using DeletePlayer on a each player of a segment. But some active players have these removed inactive players in friends list. And now when we call GetFriendsList from server api, players with removed friends have an internal server error. Please fix it asap because we cannot even remove these removed players from friends list because of this bug.
at Object.server_request (Script:180:24) at
Object.server.GetFriendsList (Script:526:71)
The reason could be that the players are still in the process of deletion, as you deleted massive players at once. I will report to the corresponding team about this issue and inform you when there is any update. Your patience is appreciated.
Could you please provide your title id for us to diagnose?
4F51
deletion process has ended days ago
I cannot reproduce the issue that you describe. We notice that in November you deleted 10th thousands of players and yesterday 4 thousands. Could you please try again and see if the issue still occur? If yes, please provide the playfabId that could receive this error.
Answer by Rick Chen · Dec 10, 2020 at 06:55 AM
We’ve checked the events in your title, they are all successful.
Since we cannot reproduce the issue and it is related to server API, the PlayFab community cannot handle this issue, please use the support ticket instead.
You could submit a support ticket from:
For more detail, please refer to: https://docs.microsoft.com/en-us/gaming/playfab/features/pricing/paidtechnicalsupport#support-ticket-submission
We apologize for the confusion from the conversation and the inconvenience for your project.
Answer by Vladimir Razumov · Dec 24, 2020 at 02:41 AM
We have some more descriptive error:
{"cloudScriptErrorCode":"CloudScriptAPIRequestError","stack":"Error\n at Object.server_request (Script:180:24)\n at Object.server.GetFriendsList (Script:526:71)\n at handlers.GetAndCheckFriendsList (4F51-main.js:2853:30)\n at Object.invokeFunction (Script:116:33)","apiErrorInfo":{"api":"/Server/GetFriendsList","request":{"PlayFabId":"C02265F96221C914"},"result":null,"apiError":{"code":400,"status":"BadRequest","error":"FacebookAPIError","errorCode":1143,"errorMessage":"Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.","errorHash":null,"errorDetails":null}}}
The player was querying for Facebook data through PlayFab, but don’t have a valid Facebook token, which caused this error. Please use the LoginWithFacebook API to update the Facebook token in PlayFab first.
Please refer to this thread: https://community.playfab.com/questions/16636/cloud-script-getfriendslist-facebook-token-expired.html
Answer by Vladimir Razumov · Dec 29, 2020 at 01:25 AM
The problem is that this error prevents to get ALL friends. Not from facebook. So player see no friends at all.
And this error occurs even there is no facebook account linked.
We could not reproduce the issue, and the PlayFab community cannot handle this issue. Please use the support ticket as mentioned earlier. Apologize for the inconvenience.
Add Friend in CloudScript Issues 1 Answer
RemoveFriend is not always working 2 Answers