question

Leigh Warren avatar image
Leigh Warren asked

How do You form the Creator key correctly? (via UE4 blueprints)

Here is the log and example for CreateMatchmakingTicket. Execution to right leads directly into the CreateMatchmakingTicket node. I get similar errors trying to create / use an entitykey for SetObjects as well.

LogPlayFab: Request: {
    "Creator":
    {
        "Entity":
        {
            "Id": "1234123412341234",
            "Type": "title_player_account",
            "TypeString": "title_player_account"
        }
    },
    "GiveUpAfterSeconds": 120,
    "MembersToMatchWith": [
        {
        }
    ],
    "QueueName": "Just_Two"
}
LogPlayFab: Response : {"code":400,"status":"BadRequest","error":"InvalidParams","errorCode":1000,"errorMessage":"Invalid input parameters","errorDetails":{"EntityKey":["Type or TypeString is required.","Id is required."," is not an allowed value of Type."]}}
LogBlueprintUserMessages: [None] PlayFab : Create Matchmaking Ticket - FAIL >>{
    "errorcode": 1000,
    "errordetails": "EntityKey: Type or TypeString is required.\nEntityKey: Id is required.\nEntityKey:  is not an allowed value of Type.",
    "errormessage": "Invalid input parameters",
    "errorname": "InvalidParams",
    "haserror": true
}
entitiesMatchmaking
creatematchticket.png (183.8 KiB)
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

·
Leigh Warren avatar image
Leigh Warren answered

Solved - MembersToMatchWith needed to be null. Note that the error codes are misleading.

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 ·

Yeah, if you don't need other users to match with, then the "MembersToMatchWith" property should be left empty, like this :

"MembersToMatchWith": [ ],

Or else you need to specify other user's entity like the one in the "Creator" property:

  "MembersToMatchWith": [
        {
            "Id": "1234123412341234",
            "Type": "title_player_account",
            "TypeString": "title_player_account"
        }
  ],

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.