aj-r / RiotNet

A .NET/C# client for the Riot Games API
MIT License
23 stars 10 forks source link

RiotClient.GetStaticRealm does not work for some regions #2

Closed sim1-dll closed 8 years ago

sim1-dll commented 8 years ago

Hi, I am facing a strange issue. RiotClient.GetStaticRealm is not working for some regions (I tested EUW and TR not working), while it works fine for other regions (I tried NA,BR,LAN). My developer account is on EUW so I think it is not related to the account settings.

RiotClient client = new RiotClient(Region.EUW, riotApiKey);
staticRealm = client.GetStaticRealm(); //NOT OK

RiotClient client2 = new RiotClient(Region.NA, riotApiKey);
staticRealm = client2.GetStaticRealm(); //OK

The message I receive is the following: A REST request failed. Status code: 403 _{"status": {"message": "Forbidden", "statuscode": 403}}

aj-r commented 8 years ago

Cool bug. It looks like it's sending the request to https://euw.api.pvp.net/... but it should be sending it to https://global.api.pvp.net/...

It seems to work anyways for NA, but not for EUW.

aj-r commented 8 years ago

Fixed in release 2.1.0