question

formatcvt avatar image
formatcvt asked

Cloudscript GrantCharacterToUser returns Internal Error

Sometimes GrantCharacterToUser returns Internal Error. How can we fix this?

{
  "PlayFabEnvironment": {
    "Application": "logicserver",
    "Vertical": "master",
    "Commit": "56543cb",
    "Cloud": "main"
  },
  "EventNamespace": "com.playfab",
  "Timestamp": "2020-05-13T15:13:53.6405009Z",
  "FunctionName": "GrantCharacterToCurrentPlayer",
  "SourceType": "BackEnd",
  "CloudScriptExecutionResult": {
    "FunctionName": "GrantCharacterToCurrentPlayer",
    "ProcessorTimeSeconds": 0.0,
    "ExecutionTimeSeconds": 0.061362999999999994,
    "MemoryConsumedBytes": 48472,
    "HttpRequestsIssued": 0,
    "APIRequestsIssued": 3,
    "Revision": 95,
    "Logs": [
      {
        "Message": "PlayFab API request error",
        "Data": {
          "api": "/Server/GrantCharacterToUser",
          "request": {
            "CharacterName": "character5",
            "CharacterType": "character5",
            "PlayFabId": "C7C9DF69013DFC9C"
          },
          "result": null,
          "apiError": {
            "code": 500,
            "status": "InternalServerError",
            "error": "InternalServerError",
            "errorCode": 1110,
            "errorMessage": "An unexpected error occured while processing the request.",
            "errorHash": "111bcd7cb8e7348547dfb660a81dc3a2",
            "errorDetails": {
              "RequestID": [
                "1-5ebc0eb1-c41538a9a3008375a7d07dd4"
              ]
            }
          }
        },
        "Level": "Error"
      }
    ],
    "Error": {
      "Message": "The script called a PlayFab API, which returned an error. See the Error logs for details.",
      "Error": "CloudScriptAPIRequestError",
      "StackTrace": "Error\n    at Object.server_request (Script:180:24)\n    at Object.server.GrantCharacterToUser (Script:568:77)\n    at handlers.GrantCharacterToCurrentPlayer (215FF-main.js:329:51)\n    at Object.invokeFunction (Script:116:33)"
    }
  },
  "EntityType": "player",
  "EventName": "player_executed_cloudscript",
  "EntityId": "C7C9DF69013DFC9C",
  "EventId": "b34541f83a734221901c6deed6479fbd",
  "TitleId": "215FF",
  "Source": "CloudScript"
}
CloudScriptgame manager
10 |1200

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

1 Answer

·
formatcvt avatar image
formatcvt answered

oh, my mistake, i think this is because of current player is deleted

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.

Citrus Yan avatar image Citrus Yan commented ·

Glad you solved it, any question please let us know:)

0 Likes 0 ·

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.