"Timestamp out of bounds", "code":135


#1

Hi, I am following the examples presented in a book and trying to retrieve the worldwide trends by executing the following:

import twitter

CONSUMER_KEY = '…'
CONSUMER_SECRET = '…'
OAUTH_TOKEN = '…'
OAUTH_TOKEN_SECRET = ‘…’

auth = twitter.oauth.OAuth(OAUTH_TOKEN, OAUTH_TOKEN_SECRET, CONSUMER_KEY, CONSUMER_SECRET)
twitter_api = twitter.Twitter(auth=auth)

WORLD_WOE_ID = 1
world_trends = twitter_api.trends.place(_id=WORLD_WOE_ID)

Unfortunately, as soon as I execute the last statement, I get the following error:
“Traceback (most recent call last):
File “”, line 1, in
File “build/bdist.linux-x86_64/egg/twitter/api.py”, line 245, in call
File “build/bdist.linux-x86_64/egg/twitter/api.py”, line 276, in _handle_response
twitter.api.TwitterHTTPError: Twitter sent status 401 for URL: 1.1/trends/place.json using parameters: (id=1&oauth_consumer_key=…&oauth_nonce=…&oauth_signature_method=HMAC-SHA1&oauth_timestamp=…&oauth_token=…&oauth_version=1.0&oauth_signature=…)
details: {“errors”:[{“message”:“Timestamp out of bounds”,“code”:135}]}”

Wherever you see “…” it means I have replaced the original part for privacy.

Could someone please help me out?


#2

am too getting the same error