Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
X-RateLimit-Reset HTTP header missing from 400 Bad Request response when you get rate-limited
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mehdi  
View profile  
 More options Apr 11 2012, 9:54 am
From: Mehdi <me...@shhmooze.com>
Date: Wed, 11 Apr 2012 06:54:24 -0700 (PDT)
Local: Wed, Apr 11 2012 9:54 am
Subject: X-RateLimit-Reset HTTP header missing from 400 Bad Request response when you get rate-limited
Hi,

I was testing the rate-limiting behaviour last night to make sure that
I mark rate-limited tokens as such to avoid making unnecessary API
calls that are sure to fail (and while testing, I saw that we're now
allowed 800 calls / hour, which should be far more than enough anyway
- but that's beside the point).

The doc indicates that the X-RateLimit-Reset HTTP header contains the
time when the rate limit gets reset. And it's indeed there on every
response... except on the 400 Bad Request response you get when you
get rate limited, which is precisely where you'd actually want to know
when you can start making requests again.

The doc suggests that I can check the status of an account by calling
the /members/?relation=self method but that doesn't work either when
you're rate-limited (I just get a 400 response).

So at this point I can mark a token as being rate-limited but there
doesn't seem to be any way to know when the restriction will get
lifted. Is there any workaround I missed?

Cheers,
Mehdi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Tangren  
View profile  
 More options Apr 11 2012, 11:36 am
From: Doug Tangren <d...@meetup.com>
Date: Wed, 11 Apr 2012 11:36:28 -0400
Local: Wed, Apr 11 2012 11:36 am
Subject: Re: [meetup-api] X-RateLimit-Reset HTTP header missing from 400 Bad Request response when you get rate-limited

Good catch Mehdi. The request ratelimits are based on hourly windows. I
will open a ticket to make sure the X-RateLimit headers are getting set
when you fall over the threshold.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Tangren  
View profile  
 More options May 31 2012, 3:26 pm
From: Doug Tangren <d...@meetup.com>
Date: Thu, 31 May 2012 15:26:07 -0400
Local: Thurs, May 31 2012 3:26 pm
Subject: Re: [meetup-api] X-RateLimit-Reset HTTP header missing from 400 Bad Request response when you get rate-limited

This should now be fixed. Http error responses triggered by a client going
over their rate limit should now include these headers.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »