How to solve 429 error response

Hello, I get 429 error response from the graphql endpoint. any help on this? I know this has to do with too many requests, but what is like the benchmark, this is causing me big problem

The GraphQL server returns rate limit headers:

X-RateLimit-Limit: 200
X-RateLimit-Remaining: 174
X-RateLimit-Reset: 1593498530

At a guess, I’d say the rate limit is based off this RFC. Section 1.3 defines the headers as this:

  • RateLimit-Limit: containing the requests quota in the time window;
  • RateLimit-Remaining: containing the remaining requests quota in the current window;
  • RateLimit-Reset: containing the time remaining in the current window, specified in seconds or as a timestamp;

In this case, it is a UNIX timestamp, divided by 1000. So to parse back, multiply by 1000 (this in javascript):

new Date(headers['X-RateLimit-Reset'] * 1000)