Skip to content Skip to sidebar Skip to footer

Error Using Api.update_status Method In Tweepy Using Oauth2

Here is my code:- I have double checked all the auth parameters. import tweepy CONSUMER_KEY ='#Omitted - you should not publish your actual key' CONSUMER_SECRET ='#Omitted - you

Solution 1:

I received this error under the same conditions - using tweepy, all of my keys/secrete were copy and pasted correctly. The problem was the time on my server. After running ntpdate -b pool.ntp.org I was to use tweepy just fine.


Solution 2:

I am able to authenticate using tweepy, I have an extra line in my code though, it might help for you to change your code to this:

import tweepy
from tweepy import OAuthHandler

then proceede with the rest of your code. Also add a line in your code to print out to the shell to show your connect as follows:

print api.me().name

Make sure the line you see above this is right after api = tweepy.API(auth)


Solution 3:

Try api.update_status(status='Tweeting from command line'). It helped me.


Post a Comment for "Error Using Api.update_status Method In Tweepy Using Oauth2"