question

Christoph Potas avatar image
Christoph Potas asked

GetAccountInfo always return AccountNotFound

Hi,

we use GetAccountInfo to search for other players. it works well on D941B but on E467E it always return "/Client/GetAccountInfo: User not found" for our test users - cant find any different's in configuration

TestUsers: Test347, Test444, Kastrollo147

could you have a look at it ?

Account Management
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 answered

Hi @Christoph Potas,

We may found the root cause of the issue:

Take User Test347 for example, copy its displayname from this page: https://developer.playfab.com/en-US/E467E/players/2A5139A7D40F5A2F/overview

and compare it with "Test347" you will find that they are not identical:

The utf-8 encoding of the display name copied from GameManager is:

\x54\x65\x73\x74\x33\x34\x37\xE2\x80\x8B\xE2\x80\x8B

However, the utf-8 encoding of the manually typed "Test347" is:

\x54\x65\x73\x74\x33\x34\x37 

\xE2\x80\x8B represents ZERO WIDTH SPACE in utf-8 encoding.

Hence, you should be able to get those test users' account info if you pass the display name copied from Game Manager to GetAccountInfo.

Above is the reason why you always get "AccountNotFound" for these test users because their display names have some hidden characters, which looks exactly the same as the ones with no hidden characters.

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.

Christoph Potas avatar image Christoph Potas commented ·

Awesome found - still not sure how unity insert these chars but with knowing this we can filter it. Big Thanks for all help :)

0 Likes 0 ·
Citrus Yan avatar image
Citrus Yan answered

We took a look at your title E467E, looks like everything is OK. What does your request look like? Does it look like this:

{  

"TitleDisplayName": "user_displayname"

}

Or something else?

9 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.

Christoph Potas avatar image Christoph Potas commented ·

still same problem - no result at all for GetAccountInfo ( on E467E )

our request (c#):

PlayFabClientAPI.GetAccountInfo( new GetAccountInfoRequest
{
   TitleDisplayName = DisplayName
}, OnSuccess, OnError );

the same client with D941B configuration runs great but with E467E configuration it fails all the time

0 Likes 0 ·
Christoph Potas avatar image Christoph Potas commented ·

maybe its something with the unity sdk - on website everything is right for both

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Christoph Potas commented ·

Would you please test calling GetAccountInfo via Postman to see whether it's really an issue with the unity sdk or the PlayFab backend server?

And, would it be ok that we test those users in your title as well?

0 Likes 0 ·
Christoph Potas avatar image Christoph Potas Citrus Yan commented ·

tried but not working at all - all calls except "GetEntityToken" get "NotAuthenticated".... your Postman guide doesnt work at all... pls add some (working) example, i mean the entity token is the only thing i could get without the guide...

still not possible to search... this makes the friends feature un-useable

so you still not found any problem ?

0 Likes 0 ·
Show more comments
Christoph Potas avatar image Christoph Potas commented ·

E467E is not live anymore - we still have a few users that are on a very old version ( which uses the old playfab title ) but its our test-title ( cant delete it because of the old users )

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Christoph Potas commented ·

Have you considered migrating those old users into the new title?

0 Likes 0 ·
Christoph Potas avatar image Christoph Potas Citrus Yan commented ·

yea, we should probably do this^^

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.