title: Twitter4j - Rate limit exceeded
body: <p>I would like to get followers using <code>getFollowersIds()</code> in Twitter4j, but I get </p>
  
  <blockquote>
    <p>ConnectionErrorException ... 
    rate limit exceeded</p>
  </blockquote>
  
  <pre><code>public static void main(String[] args) {
          try {
              Twitter twitter = TwitterFactory.getSingleton();
              String[] srch = new String[]{"TechCrunch"};
              ResponseList&lt;User&gt; users = twitter.lookupUsers(srch);
              for (User user : users) {
  
                  UserHarvest us = new UserHarvest(6017542);
                  us.getFollowersIds();
                  try {
                      us.getContributors();
                  } catch (ConnectionErrorException ex) {
                      Logger.getLogger(UserHarvest.class.getName()).log(Level.SEVERE, null, ex);
                  }
              }
          } catch (TwitterException ex) {
              Logger.getLogger(UserHarvest.class.getName()).log(Level.SEVERE, null, ex);
          }
      }
  </code></pre>
  
  <p><strong>Error message:</strong></p>
  
  <pre><code>Exception in thread "main" harvest.twitterharvest.ConnectionErrorException: Connection could not have been established
      at harvest.twitterharvest.WrapperTwitter4J.getFollowersIDs(WrapperTwitter4J.java:75)
      at harvest.twitterharvest.UserHarvest.getFollowersIds(UserHarvest.java:106)
      at harvest.twitterharvest.UserHarvest.main(UserHarvest.java:140)
  Caused by: 429:Returned in API v1.1 when a request cannot be served due to the application's rate limit having been exhausted for the resource. See Rate Limiting in API v1.1.(https://dev.twitter.com/docs/rate-limiting/1.1)
  message - Rate limit exceeded
  code - 88
  
  Relevant discussions can be found on the Internet at:
      http://www.google.co.jp/search?q=92c30ec6 or
      http://www.google.co.jp/search?q=19e1da11
  TwitterException{exceptionCode=[92c30ec6-19e1da11], statusCode=429, message=Rate limit exceeded, code=88, retryAfter=-1, rateLimitStatus=RateLimitStatusJSONImpl{remaining=0, limit=15, resetTimeInSeconds=1384512813, secondsUntilReset=904}, version=3.0.4}
      at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:162)
      at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
      at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:89)
      at twitter4j.TwitterImpl.get(TwitterImpl.java:1894)
      at twitter4j.TwitterImpl.getFollowersIDs(TwitterImpl.java:409)
      at harvest.twitterharvest.WrapperTwitter4J.getFollowersIDs(WrapperTwitter4J.java:73)
      ... 2 more
  </code></pre>
  
  <p>I see <code>secondsUntilReset=904</code>. I run code 1 hour later and get the same error message. I don't know why. Thanks for any help.</p>