Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter POST requests failing #161

Open
vgoklani opened this issue May 23, 2014 · 3 comments
Open

Twitter POST requests failing #161

vgoklani opened this issue May 23, 2014 · 3 comments

Comments

@vgoklani
Copy link

All of my Twitter POST requests are failing. I've followed the examples for authenticating:

self.oauth = OAuth1Service(
name='twitter',
consumer_key=consumer_key,
consumer_secret=consumer_secret,
request_token_url='https://api.twitter.com/oauth/request_token',
access_token_url='https://api.twitter.com/oauth/access_token',
authorize_url='https://api.twitter.com/oauth/authorize',
base_url='https://api.twitter.com/1.1/'
)
self.session = self.oauth.get_session( (access_token_key, access_token_secret) )

self.session.post('lists/members/create_all.json', params={'list_id':list_id, 'owner_screen_name':owner_screen_name, 'screen_name':chunked_screen_names_str})

AttributeError: 'NoneType' object has no attribute 'items'

The GET requests all work correctly.

I also tried to use an auth_session:

self.oauth.get_auth_session(access_token_key, access_token_secret, method='POST')

but received this error:

KeyError: 'Decoder failed to handle oauth_token with data as returned by provider. A different decoder may be needed. Provider returned: \n\n The access_token method must be called with a request_token\n /oauth/access_token\n\n'

@vincenttheeten
Copy link

Any progress on this one? Facing the same problem here.

@maxcountryman
Copy link
Contributor

Can you post the full traceback? Also a code sample demonstrating the problem would be helpful.

@davidkhess
Copy link
Contributor

I have to supply "data={}" to these calls or it fails like that for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants