Rate limit exceeded for OAuth calls


I’m writing a Java client to talk to Twitter. Did OAuth using Jersey API using and then passing the signed oauth_token to request user_timline as:


The Authorization header is also set correctly. But I’m still getting the error:

“Rate limit exceeded. Clients may not make more than 150 requests per hour.”

https://dev.twitter.com/docs/rate-limiting says OAuth calls are permitted 350 per hour. This message seem to indicate that unauthenticated request limit is reached. Why so ?



Examine your HTTP headers in the response – you might have an X-Warning header telling you that your auth is actually invalid but that since you’re requesting a method not explicitly requiring auth, we’re serving it to you in an unauthenticated context to satisfy your request. Most likely there is something subtle causing invalid auth for you.


Ah, that explains!

Following up on why X-Warning header is coming with @kurrik at https://dev.twitter.com/discussions/4865.

Any insights on that thread will be helpful as well.