You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run multiple instances of RiotSharp at once or use the same API Key in another application the rate limiter does not prevent exceeding the rate limit. This leads to 429 errors. However, HandleRequestFailure fails to handle 429 errors, so instead the JSON parser ends up being unable to parse the returned data. This is super unintuitive because the error thrown is about the JSON parser, but the real problem is the rate limiter.
Potential fixes:
Change the rate limiter to use the values provided in the return header by Riot.
Catch 429 errors. <-- Probably should do this no matter what.