question

Wanhan dredwan avatar image
Wanhan dredwan asked

NotAuthenticated when calling CreateServerMatchmakingTicket

Pls help with error. User is logged in using customID method.

Endpoint:

Match/CreateServerMatchmakingTicket

Body:

{"QueueName":"TestingQueue"}

Response:

{
code = 401;
error = NotAuthenticated;
errorCode = 1074;
errorMessage = "This API method does not allow anonymous callers.";
status = Unauthorized;
}

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

·
Sarah Zhang avatar image
Sarah Zhang answered

This error means the authentication credentials, in this case, the title entity token didn’t be passed to API CreateServerMatchmakingTicket. Could you please provide the development platform, SDK version and detailed code? So that, we can check why there is no entity token be passed.

Besides, we noticed that you logged a player in, then called an API that designed for the server. Could you please clarify what your target is? If you want to create the matchmaking ticket from the client, please use the API CreateMatchmakingTicket instead of CreateServerMatchmakingTicket. If you want to create the matchmaking ticket for players from the server, you can set the title development secret key in the PlayFab SDK then call the API GetEntityToken to retrieve the title level’sentity token, then access the API CreateServerMatchmakingTicket.

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.