Skip to content

Handle rate limit of CFTools #53

@FlorianSW

Description

@FlorianSW

When checking for priority queue, the tool needs to fetch information for the steam ID, however, this endpoint is rate limited by CFTools. When the tool tries to fetch priority queue status for multiple servers, it can easily end in the following logs (errors):

{"level":"error","message":"Could not request Priority queue information for server API ID: [object Object]. Error: Error: RequestLimitExceeded: https://data.cftools.cloud/v1/users/lookup?identifier=7656xxxx"}

This should either be handled in the sdk or in this tool. Two things to do, I think:

  • reduce number of requests to the endpoint by caching the steam ID -> cftools ID response
  • Handle the rate limit somehow (retry or so)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions