AddFriendByNameAsync not working

Hello,

I’m trying to use AddFriendByNameAsync from Friend Services but it did’nt work.
It return always server internal error ( code: 50 ) details : User " xxxxxxxx" not found.

So I tried with the api, but same issue.
The only way a did it was with the raw ID of the player.
I’m displaying await AuthenticationService.Instance.GetPlayerNameAsync(), so I’m 100% sure that is the good username and tag.

I really don’t know.

Regards,

Hi when you are calling AddFriendByNameAsync form the friends service are you passing in the entire name as in
name + #numbercode.

Secondly its worth noting that a lot of standard unity UI input elements sometimes add invisible whitespace characters. If you can inspect the string to make sure there isn’t any weird characters.

Are you using the asset store sample ?