/search/tweets sometimes throws 403: Unable to verify your credentials


I’m using Twitter gem (https://github.com/sferik/twitter) inside a Sidekiq worker (https://github.com/mperham/sidekiq). Both are up-to-date.

I’m using /search/tweets with application authentication (not user).
It seems that if I fire too many requests (like 80-100 in a few seconds, still lower than the limit = 450/15min) I get 403 Forbidden: Unable to verify your credentials. Then I need to wait for 5-10 minutes and I can perform requests again.

Is there another rate-limit that could “block” my app/the server IP?


Is there more information with the HTTP 403 – the specific error message attached with the request? Are you sure that it’s the search/tweets method throwing the error? (Is it possible your library is doing anything other than just calling search/tweets?).


It happens to me too!
client_credentials trying to get a token using:

with consumerKey/secret, it sometimes works and sometimes return 403 :
message - Unable to verify your credentials
code - 99

I think it has something todo with a cap on our servers. we have an application at google app-engine, again all seem to work fine but fail rate is high, almost all are getting the following message:

403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).
message - Unable to verify your credentials
code - 99