Hi,
I have two accounts (let's call them A and B).
A is friend with B and B is friend with A. I know that because when I call GetFriendList, both appears in each other friend list.
When I try to remove that friendship in my cloudscript, playfab throw an error without any data inside.
So far I'm sure that the problem doesn't come from the application itself, since it's working with other friendship and/or other accounts (for example I can remove the friendship between A and another account C, or between B and C, or between C and another account D).
I don't think it's coming from my cloudscript neither since I executed it from the dashboard and have the same result when I try to remove the friendship between A and B (error) but a success when it's about A and C, B and C ...
I believe A and B are friends for a "long" time (probably a month or two).
Here is my function and its result, thank you for reading
handlers.removeFriend = function(args) { var friendId = args.FriendPlayFabId; var succeed = true; try { server.RemoveFriend({PlayFabId : currentPlayerId, FriendPlayFabId : friendId}); } catch (err) { succeed = false; } try { server.RemoveFriend({PlayFabId : friendId, FriendPlayFabId : currentPlayerId}); } catch (err) { succeed = false; } return {hasBeenRemoved:succeed}; };
and the result I got when I execute it from the dashboard :
{ "FunctionResult": { "hasBeenRemoved": false }, "Logs": [ { "Level": "Error", "Message": "PlayFab API request error", "Data": [ [ [] ], [ [ [ [] ], [ [] ] ] ], [ [] ], [ [ [ [] ], [ [] ], [ [] ], [ [] ], [ [] ], [ [] ], [ [] ] ] ] ] }, { "Level": "Error", "Message": "PlayFab API request error", "Data": [ [ [] ], [ [ [ [] ], [ [] ] ] ], [ [] ], [ [ [ [] ], [ [] ], [ [] ], [ [] ], [ [] ], [ [] ], [ [] ] ] ] ] } ], "ExecutionTimeSeconds": 0.1521986, "MemoryConsumedBytes": 121544, "APIRequestsIssued": 2, "HttpRequestsIssued": 0, "Error": null }