question

Timurs Sugajevs avatar image
Timurs Sugajevs asked

GetFriendsList critical error

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)

CloudScriptFriends
5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rick Chen avatar image Rick Chen ♦ commented ·

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.

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ commented ·

Could you please provide your title id for us to diagnose?

0 Likes 0 ·
Timurs Sugajevs avatar image Timurs Sugajevs Rick Chen ♦ commented ·

4F51

deletion process has ended days ago

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Timurs Sugajevs commented ·

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.

0 Likes 0 ·
Show more comments
Rick Chen avatar image
Rick Chen answered

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:

  1. Log in to PlayFab.com.
  2. Navigate to the Title Overview page of the title needing support.
  3. To access the help menu, select the ? in the top right navigation bar.
  4. Select Contact Us.

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Timurs Sugajevs avatar image
Timurs Sugajevs answered

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}}}
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rick Chen avatar image Rick Chen ♦ commented ·

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

0 Likes 0 ·
Timurs Sugajevs avatar image
Timurs Sugajevs answered

The problem is that this error prevents to get ALL friends. Not from facebook. So player see no friends at all.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Timurs Sugajevs avatar image Timurs Sugajevs commented ·

And this error occurs even there is no facebook account linked.

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Timurs Sugajevs commented ·

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.

0 Likes 0 ·
Luc avatar image
Luc answered

Solution from Rick Chen:

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

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]