[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

 Description   

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.



 Comments   
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 Fri Nov 24 22:20:56 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.