• Join - It's Free

Help please

Started by Private User on Wednesday, November 22, 2023
Problem with this page?

Participants:

  • Private User
    Geni Pro
  • Private User
    Geni Pro
  • Private User
    Geni member

Related Projects:

Showing all 7 posts

I have tried making two sequential calls.
The first to get the profile, and the second to get the immediate family.

The first call produces the profile data.
The second call returns error message: message: "Rate limit exceeded.", type: "ApiException"

Two years ago, my application worked fine.

How i can increase the rate limit?

What is the rate numbers you get in the first call?

Don't know how to see the rate number - do you have somewhere instructions how to see it?

You get the values in the response headers, see https://www.geni.com/platform/developer/help/rate_limits?version=1

Anyhow: - how is your app implemented?

Your app is probably not approved and have a rate limit of 1, or you are trying to use the Api through a regular login and not using an approved AccessToken

From my C# code:

using (WebClient request = new WebClient())
{
    if (AccessToken != null)
      request.Headers.Add("Authorization", $"Bearer {Uri.EscapeDataString(AccessToken)}");
    byte[] result = request.DownloadData(uri);
    RateLimit = int.Parse(responseHeaders["X-API-Rate-Limit"]);
    RateWindow = int.Parse(request.ResponseHeaders["X-API-Rate-Window"]);
    RateRemaining = int.Parse(request.ResponseHeaders["X-API-Rate-Remaining"]);
    return result;
}

I know the feeling :/ I had the same problem, even with the token, and not for love or money could I get it to work. I'd be keen to hear if you find a solution.

To get max rate limit your app needs to be approved by Geni. But again: first confirm what your app limit is.

I think it is 1.

Showing all 7 posts

Create a free account or login to participate in this discussion