-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Data champion, GetByKey returns RiotSharpException: 403, Forbidden #688
Comments
Regarding Regarding |
There should be RiotSharp/RiotSharp/Endpoints/StaticDataEndpoint/Champion/StaticChampionEndpoint.cs Line 71 in 3891550
Do you use the nuget package from online or did you build yourself? The online one is no longer maintained, so you need to build it yourself either as dll or nuget. (see https://github.com/BenFradet/RiotSharp#build-your-own-latest-nuget-package) |
I see, I'm sorry would you mind to guide me how to do that? Since I'm a little bit lost. I've always installed the nuget packages online. I've download the Riot Sharp project. What'd be the next? Since I can't build up because it's a class. (A video, or any stuff showing the step by step is enough, if you're fine with that) Thanks in advance! |
Maybe this one can help you as well #676 |
Thanks a lot, now it works perfectly! |
Sorry to bother again but for some reason the method stays waiting until infinity. It doesn't even return any kind of exception.
(The version value is 11.12.1) It is something that I'm doing wrong? |
Following code works for me without any issue, besides the champ behind 72 being Skarner ;)
|
Weird, it might be something relate to my code. Tried this
with my ApiKey of course, and get the same result. However, I got all champions with PS; My mind is a mess and the whole time I was thinking 72 was nida despite I knew it was 76, haha, however, thanks for your help, was really useful! Have a good day. |
I've been checking that it wasn't me, testing with different keys. (The same happened to me with the
GetSummonerByAccountIdAsync
andGetSummonerBySummonerIdAsync
methods, I just ignored it and continue working with theGetSummonerByNameAsync
method). These two first methods returned a RiotSharpException: 403, ForbiddenHowever, I tried
.Champions.GetByKeyAsync
right now and it also returns the same exception.This is the exact code.
var test = api.StaticData.Champions.GetByKeyAsync(championId.ToString(), version[0]).Result.Image.Full;
The text was updated successfully, but these errors were encountered: