[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
|Project:||Spring Social Twitter|
|Reporter:||Barry John Williams||Assignee:||Craig Walls|
|Labels:||exception, limit, rate, twitter|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
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.".