question

Brent Batas (Lisk) avatar image
Brent Batas (Lisk) asked

Why am I getting a ProfileDoesNotExist error when calling GetEntityToken?

I'm getting a ProfileDoesNotExistError when calling GetEntityToken.

https://i.imgur.com/NucW0q7.png

Code for calling GetEntityToken:

var titleEKey = PlayFabAuthenticationAPI.GetEntityTokenAsync(new GetEntityTokenRequest()
{
    Entity = new PlayFab.AuthenticationModels.EntityKey()
    {
        Type = "title"
    }
}).Result;

I've verified I'm setting my titleId and secret key in earlier lines.

I'm pretty sure this code used to work a couple weeks ago when I last tested it, but now it's broken.

entities
2 comments
10 |1200

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

Brian Jensen avatar image Brian Jensen commented ·

I'm not 100% but shouldn't Type = title_player_account?

0 Likes 0 ·
Brent Batas (Lisk) avatar image Brent Batas (Lisk) Brian Jensen commented ·

I'm just trying to authenticate the title using the 'title' key (

https://api.playfab.com/docs/tutorials/entities/entitytypes)

0 Likes 0 ·

1 Answer

·
v-humcin avatar image
v-humcin answered

When you are trying to get the entity token for the title itself, instead of specifying an "Entity" of type "title", you should leave the request blank and it will authenticate as the title.

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.