joschi99 / Osiris

Osiris NMS
0 stars 1 forks source link

Twitter: "HTTP Error 403: Forbidden" when connect app to your Twitter account using register_app_to_account.py #1

Closed joschi99 closed 10 years ago

joschi99 commented 10 years ago

For connecting the Twitter notifications to a specific Twitter Account you need to use the script register_app_to_account.py. Starting the script the following error is returned:

./register_app_to_account.py Traceback (most recent call last): File "./register_app_to_account.py", line 9, in auth_url = auth.get_authorization_url() File "/usr/lib/python2.6/site-packages/tweepy-2.1-py2.6.egg/tweepy/auth.py", line 96, in get_authorization_url raise TweepError(e) tweepy.error.TweepError: HTTP Error 403: Forbidden

It seems that the problem is that the request use HTTP and Twitter moved to HTTPS.

The script twitter_commandline.py for sending Twitter messages is working still again.

joschi99 commented 10 years ago

The problem is caused by: https://dev.twitter.com/discussions/24239

joschi99 commented 10 years ago

Please see solution on https://github.com/tweepy/tweepy/pull/379

joschi99 commented 10 years ago

Workaround: please use the 4 updated Tweepy files in directory "SSL workaround" and change it with the original. After then install Tweepy normaly. This changes bring the communication with api.twitter.com from HTTP to HTTPS.