Closed JeffreyCA closed 9 years ago
This is the intended behavior when the API sends a 404 error. You should use a try/catch block to react appropriately in the context of your application if the summoner has no leagues.
Also, you'll want to regenerate your API key as it's shown in this comment.
Thanks, I fixed it.
The following code does not work for any unranked players in a mixed rank game (both ranked & unranked players in the game).
I get an APIException 404 Not Found:
com.robrua.orianna.type.exception.APIException: A NOT_FOUND (404) error was received from the server for URI https://na.api.pvp.net/api/lol/na/v2.5/league/by-summoner/32172885/entry?api_key=744e79b3-a84f-49c2-aa78-4fab3d9b0401
`