Tweepy error in auth.get_authorization_url: 403 Forbidden


#1

Hello,

My website is working with twitter authentication without problem since a Year, and since a few days I have a 403 when trying to get the authentication url.
Nothing is written in my app information on twitter developpers.

I’m working with tweepy:

import tweepy
auth = tweepy.OAuthHandler(‘ggYC1jpFfXXXX’,‘XXXXXXXXXX’)

redirect_url = auth.get_authorization_url()
Traceback (most recent call last):
File “”, line 1, in
File “/home/twaffic/env/twaffic/local/lib/python2.7/site-packages/tweepy/auth.py”, line 103, in get_authorization_url
raise TweepError(e)
TweepError: HTTP Error 403: Forbidden

Did twitter blocked my app? I’m still able to tweet for the registered users…

Thanks for your help


#2

tweepy for whatever reason does not always use SSL

try…

import tweepy
auth = tweepy.OAuthHandler(‘ggYC1jpFfXXXX’,‘XXXXXXXXXX’)
auth.secure = True


#3

thank u a lot it happened with me too but know everything is good @hayesdata