question

evazquez avatar image
evazquez asked

Client/GetLeaderBoard : Invalid view constraints

Hello,

In our game we are getting leaderboards with profile constrains: DisplayName and AvatarUrl . But apparently ShowAvatarUrl constraint is causing an Invalid view constraints error in the same code that was working before ( moth ago store published game started failing )

Any ideas about this new issue?

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.

evazquez avatar image evazquez commented ·

Also tried from Web API and showing the same behavior when trying to use ShowAvatarUrl

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

In order to use the profile constraints from the Client API call, you first must set up the permissions for profile constraints in your title (Settings->Profile View Constraints). This is to ensure that the client cannot request information about other players that you do not want exposed.

We'll be updating shortly with a clear error code for this case.

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.

Niall Muldoon avatar image Niall Muldoon commented ·

Looks like this error is still the same, ended up coming here to solve the problem.

0 Likes 0 ·
Rizwan Babar avatar image Rizwan Babar commented ·

Adding Profile Constraints to leaderboard request and then getting player locations even with locations allowed in settings returns a null reference error but profile constraints work with GetPlayerProfile call

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.