developer-relations icon indicating copy to clipboard operation
developer-relations copied to clipboard

[BUG] NA summoner with unicode name cannot be looked up

Open molenzwiebel opened this issue 2 years ago • 0 comments

Bug Description
The summoner 君 on NA (a real account!) cannot be looked up using the by-name endpoint, even though they exist.

Problem Description
There is a summoner named on NA which cannot be looked up through the by-name endpoint. The only way to retrieve their information is to find a match in which they participated, then taking the encrypted participant PUUID from the game and using that instead. This makes it impossible to query the summoner unless you already know a game in which they participated.

Large sites, such as op.gg or leagueofgraphs, do not suffer from this issue because they already have the summoner information from match crawling and perform an internal search before using the by-name API. Smaller sites, or those that do not crawl, cannot find the user.

Expected Result
I'd expect /lol/summoner/v4/summoners/by-name/%E5%90%9B to return the summoner information.

Actual Result

Looking them up by name:

{
    "status": {
        "message": "Data not found - summoner not found",
        "status_code": 404
    }
}

Looking them up by PUUID (can be retrieved through match-v5 for a match they participated in, such as NA1_4399722676):

{
    "id": "snip",
    "accountId": "snip",
    "puuid": "snip",
    "name": "君",
    "profileIconId": 938,
    "revisionDate": 1660013887000,
    "summonerLevel": 42
}

Developer Impact
If you don't already have the user in your database from crawling activity, they are impossible to look up. Since this user has no TFT games, it is impossible to query their summoner information if you are limited to a TFT key.

Player Impact
Service becomes impossible to use for the given user.

molenzwiebel avatar Aug 10 '22 21:08 molenzwiebel