[SOCIALTW-27] RateLimitExceededException not thrown when user hit's their daily status update limit. Created: 18/Jan/12  Updated: 18/Jan/12  Resolved: 18/Jan/12

Status: Resolved
Project: Spring Social Twitter
Component/s: None
Affects Version/s: 1.0.1.RELEASE
Fix Version/s: 1.0.2.RELEASE

Type: Bug Priority: Minor
Reporter: Barry John Williams Assignee: Craig Walls
Resolution: Complete Votes: 0
Labels: exception, limit, rate, twitter
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Reference URL: http://forum.springsource.org/showthread.php?121537-spring-social-twitter-1-0-1-and-Rate-Limit&p=397483#post397483


I've discovered TwitterErrorHandler does not handle when the user has exceeded their daily status update limit (or part thereof) as determined by Twitter. Whenever a HttpStatus.FORBIDDEN status code is returned; duplicate status; status too long; and invalid recipient are checked before throwing a general OperationNotPermittedException. However the text "User is over daily status update limit" is not checked which should result in a RateLimitExceeded exception being thrown.

Adding this exception would make it consistent with the spring-social-facebook.

Comment by Craig Walls [ 18/Jan/12 ]

Fixed TwitterErrorHandler to throw RateLimitExceededException when receiving an HTTP 403 and "User is over daily status update limit.".

Generated at Sun May 26 13:53:57 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.