Skip to content

Rate Limiter is not based off the return headers from Riot. 429 Errors are not handled. #378

@toothlessG22

Description

@toothlessG22

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions