google-code-export / hawkscope

Automatically exported from code.google.com/p/hawkscope
Other
1 stars 0 forks source link

Twitter plugin exceeds rate limit and ends up with Server error. #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
twitter4j.TwitterException: Server returned HTTP response code: 400 for URL: 
http://twitter.com/statuses/friends_timeline.xml
    at twitter4j.http.HttpClient.httpRequest(HttpClient.java:274)
    at twitter4j.http.HttpClient.get(HttpClient.java:190)
    at twitter4j.Twitter.get(Twitter.java:283)
    at twitter4j.Twitter.get(Twitter.java:228)
    at twitter4j.Twitter.getFriendsTimeline(Twitter.java:326)

Caching would solve this problem.

Original issue reported on code.google.com by tomas.va...@gmail.com on 14 Mar 2009 at 6:38

GoogleCodeExporter commented 9 years ago
Rate Limiting
Clients are allowed 100 requests per 60 sixty minute time period, starting from 
their first request.  The rate 
limited is applied to both authenticated and unauthenticated requests.  
Unauthenticated requests are rate 
limited by IP, and authenticated requests are tracked by the requesting user 
ID.  POST requests (ex: updating 
status, sending a direct message) do not count against the rate limit, but some 
actions may have caps on 
them to prevent abuse.  

Notification that a client has exceeded the rate limit will be sent as JSON or 
XML when either is the requested 
format, and otherwise will be sent in plain text.  A status code of 400 will be 
returned when the client has 
exceeded the rate limit.

Original comment by tomas.va...@gmail.com on 14 Mar 2009 at 6:53

GoogleCodeExporter commented 9 years ago

Original comment by tomas.va...@gmail.com on 14 Mar 2009 at 7:32