BenFradet / RiotSharp

C# wrapper for the Riot Games API
http://benfradet.github.io/RiotSharp/
MIT License
300 stars 145 forks source link

Error when getting match by game ID #707

Closed Man16 closed 2 years ago

Man16 commented 2 years ago

Hi,

Im using the fork by @xXLaokoonXx .

I am attempting to use Match.GetMatchAsync which takes a region and the game ID.

Game IDs look like the following: EUW1_5839263580

I have tried both Match.GetMatchAsync(Region.Euw, "EUW1_5839263580") & Match.GetMatchAsync(Region.Euw, "5839263580") but i receive the following error: RiotSharp.RiotSharpException: Bad request - Invalid routing value euw1

xXLAOKOONXx commented 2 years ago

You need to use the region Europe for the match endpoint. It might be a bit confusing, when to use what region. To check out what kind of region is allowed for what endpoint check out the developer platform

xXLAOKOONXx commented 2 years ago

Match.GetMatchAsync(Region.Europe, "EUW1_5839263580") should be the right code

Man16 commented 2 years ago

That worked, thanks