Spring Social Twitter
  1. Spring Social Twitter
  2. SOCIALTW-27

RateLimitExceededException not thrown when user hit's their daily status update limit.

    Details

      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.

        Activity

        Hide
        Craig Walls added a comment -

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

        Show
        Craig Walls added a comment - Fixed TwitterErrorHandler to throw RateLimitExceededException when receiving an HTTP 403 and "User is over daily status update limit.".

          People

          • Assignee:
            Craig Walls
            Reporter:
            Barry John Williams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: