GetRecentGames return an error
See original GitHub issueWhen using GetRecentGames(RiotSharp.Misc.Region.euw, correctSummonerID) on a {RiotSharp.SummonerEndpoint.Summoner} I get an error {“403, Forbidden”}
When using GetRecentMatches(RiotSharp.Misc.Region.euw, correctSummonerID) on a {RiotSharp.RiotApi} I get an error {“404, Resource not found”}
I am not sure what is causing the issue, the StackTrace looks like that when calling from {RiotSharp.RiotApi} :
at RiotSharp.Http.RequesterBase.HandleRequestFailure(HttpStatusCode statusCode) at RiotSharp.Http.RequesterBase.Get(HttpRequestMessage request) at RiotSharp.Http.RateLimitedRequester.CreateGetRequest(String relativeUrl, Region region, List`1 addedArguments, Boolean useHttps) at RiotSharp.RiotApi.GetRecentMatches(Region region, Int64 accountId) at projectName.Model.Student.GetLastMatchesFromSummoner(Region region, Int64 summonnerID)
And is quite similar when calling from {RiotSharp.SummonerEndpoint.Summoner} : at RiotSharp.Http.RequesterBase.HandleRequestFailure(HttpStatusCode statusCode) at RiotSharp.Http.RequesterBase.Get(HttpRequestMessage request) at RiotSharp.Http.RateLimitedRequester.CreateGetRequest(String relativeUrl, Region region, List`1 addedArguments, Boolean useHttps) at RiotSharp.SummonerEndpoint.SummonerBase.GetRecentGames() at projectName.Model.Student.GetLastMatchesFromSummoner(Region region, Int64 summonnerID)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
As far as I know the
GetRecentGames
no longer exists, except on theSummonerBase
, which is deprecated.However, I think your issue is that you are using a summoner id instead of an account id. I also get a 403 error if I try to use the endpoint with a summoner id, but with an account id it works.
Example: https://euw1.api.riotgames.com/lol/match/v3/matchlists/by-account/201104942/recent returns 200 https://euw1.api.riotgames.com/lol/match/v3/matchlists/by-account/42218540/recent returns 403 or 404
Oh my, you are right ! Thank you very much for getting rid of my confusion on that topic 😃