403 error on auth.get_authorization_url call

67 views
Skip to first unread message

Dharmesh Shah

unread,
Jan 14, 2014, 4:46:22 PM1/14/14
to twe...@googlegroups.com
I've been successfully using the tweepy api for a long time.

Recently, I've started getting a 403 error/exception when making the call to: auth.get_authorization_url()

This is part of the standard oauth process (even before I've gotten an access code or attempted to make calls for data)

Has anyone else seen this?  Any ideas for fixing?

All assistance is greatly appreciated.

Dharmesh Shah

unread,
Jan 14, 2014, 4:57:38 PM1/14/14
to twe...@googlegroups.com
Answered my own question (odds of that go up right after sending an email to the group):

twitter made a recent change to the API that requires SSL.  Thankfully, tweepy can easily switch.  Just pass secure=True.

ex: auth = tweepy.OAuthHandler(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, callback_url, secure=True)

Hope this helps others.



--
 
---
You received this message because you are subscribed to the Google Groups "tweepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tweepy+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ke...@kanno.com

unread,
Jan 15, 2014, 5:14:17 PM1/15/14
to twe...@googlegroups.com
Hi Dharmesh,

I had a same problem this evening so added secure=True in my code.
It solved my problem and the applications are running normally.

Thank you very much,
Keiya Kanno


2014年1月14日火曜日 22時57分38秒 UTC+1 Dharmesh Shah:
Reply all
Reply to author
Forward
0 new messages