Hello
TitleId: 6C15
When a player logs into the game for the first time, a playfab account gets created and a facebook account is linked to the playfab account. Once this is done, it should call a function from cloudscript that would log the user into the game.
The cloudscript function fails the first time if a brand new playfab account has to be created but after that it works fine. The cloudscript function fails when calling
var data = server.GetPlayerCombinedInfo({ PlayFabId: currentPlayerId, InfoRequestParameters: { GetPlayerProfile: true, GetUserReadOnlyData: true, ProfileConstraints: { ShowTags: true } } });
The error that gets returned in the player stream is the following
{ "EventName": "player_executed_cloudscript", "Source": "CloudScript", "FunctionName": "OnLogin", "CloudScriptExecutionResult": { "FunctionName": "OnLogin", "Revision": 5, "FunctionResult": null, "FunctionResultTooLarge": null, "Logs": [ { "Level": "Debug", "Message": "\"In OnLogin!\"", "Data": null }, { "Level": "Error", "Message": "PlayFab API request error", "Data": { "api": "/Server/GetPlayerCombinedInfo", "request": { "PlayFabId": "AF6FB1646FB1DF6E", "InfoRequestParameters": { "GetPlayerProfile": true, "GetUserReadOnlyData": true, "ProfileConstraints": { "ShowTags": true } } }, "result": null, "apiError": { "code": 500, "status": "InternalServerError", "error": "InternalServerError", "errorCode": 1110, "errorMessage": "An unexpected error occured while processing the request.", "errorHash": "360bf8bbdfedf032b86e4f3b72104fd1", "errorDetails": { "RequestID": [ "9f66c448c5924deca9b46fe3aed6c6f2" ] } } } } ], "LogsTooLarge": null, "ExecutionTimeSeconds": 0.09381049999999999, "ProcessorTimeSeconds": 0, "MemoryConsumedBytes": 144960, "APIRequestsIssued": 1, "HttpRequestsIssued": 0, "Error": { "Error": "CloudScriptAPIRequestError", "Message": "The script called a PlayFab API, which returned an error. See the Error logs for details.", "StackTrace": "Error\n at handlers.OnLogin (6C15-main.js:16:23)" } }, "EventNamespace": "com.playfab", "EntityType": "player", "TitleId": "6C15", "EventId": "745dbe5d6a794e8995edac92c60b4507", "EntityId": "AF6FB1646FB1DF6E", "SourceType": "BackEnd", "Timestamp": "2017-08-02T17:22:54.573426Z", "History": null, "CustomTags": null, "Reserved": null }
As said before the cloudscript function only errors out at that function when it is a brand user logging into the game for the first time with no playfab account.