Static Data champion, GetByKey returns RiotSharpException: 403, Forbidden
See original GitHub issueI’ve been checking that it wasn’t me, testing with different keys. (The same happened to me with the GetSummonerByAccountIdAsync
and GetSummonerBySummonerIdAsync
methods, I just ignored it and continue working with the GetSummonerByNameAsync
method). These two first methods returned a RiotSharpException: 403, Forbidden
However, 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;
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Issues · BenFradet/RiotSharp
Looking for recommended approach to storing history data locally ... Static Data champion, GetByKey returns RiotSharpException: 403, Forbidden.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
GetAllAsync
method, so I’m working with that.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.
Following code works for me without any issue, besides the champ behind 72 being Skarner 😉 https://pastebin.com/VD3ZqHAj