Hi there,

This is actually a different error than your library may be leading you to
believe -- the library is suggesting that the 403 may be due to rate
limiting, but in this case it's actually due to a recent permission model
change.

The permission model gas change whereas requesting a user's direct messages
now requires a re-authorization at the appropriate access request level
(RWD). You can read more about the new permission model and what to do next
here: http://dev.twitter.com/pages/application-permission-model ..

@episod <http://twitter.com/intent/user?screen_name=episod> - Taylor
Singletary


On Tue, Jul 5, 2011 at 1:35 PM, YupiqDZ <mrclea...@gmail.com> wrote:

> Hi,
>
> I'm currently in the process of writing an application which
> periodically gets directed messages from a user (once every 120
> seconds checks if the user has new messages).
>
> The API I am using is the Twitter4j library in Java. Here's the error
> I get:
>
> 403:The request is understood, but it has been refused.  An
> accompanying error message will explain why.
> TwitterException{exceptionCode=[ece01d6a-01eb72d6], statusCode=403,
> retryAfter=0,
> rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=326,
> hourlyLimit=350, resetTimeInSeconds=1309899, secondsUntilReset=1629,
> resetTime=Tue Jul 05 13:58:10 PDT 2011}, version=2.1.10}
>
> I am confused as to how my remainingHIts is still 326 yet I am rate
> limited? Additionally, even if I wait until the reset time indicated
> before hitting the service again, I receive the rate limit exception
> again with the reset time pushed back by an hour.
>
> I am fairly confident that this service does not poll Twitter more
> than 350 times a second, is there something else that could be causing
> me to be rate limited?
>
> Thanks
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to