question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GetRecentGames return an error

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JanOubornycommented, Jan 5, 2018

As far as I know the GetRecentGames no longer exists, except on the SummonerBase, 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

0reactions
FenrirTheKnightcommented, Jan 7, 2018

Oh my, you are right ! Thank you very much for getting rid of my confusion on that topic 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the cleanest way to return the error when matching ...
I'm calling a function that returns a Result<T, E> and I want to handle the Ok case but return the Err as is...
Read more >
gameplay
HandleMetaEvent processes a passed-in Meta Event, returning an error if it is not applicable. func InstantiateNewGame ¶. func InstantiateNewGame ...
Read more >
game
GameInfoResponse, error); func (c *Cache) GetRecentGames(ctx context. ... GameEventChan returns the game event channel for all games.
Read more >
legends - npm Package Health Analysis
CALLBACK is an optional function that is called with two arguments, error and data . Returns a promise . This method is useful...
Read more >
asyncpixel.hypixel - asyncpixel 1.6.0 documentation
return self # pragma: no cover async def __aexit__(self, *args: Any) -> None: """Exit context manager. ... InvalidApiKeyError: error if api key is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found