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

Already on GitHub? Sign in to your account

Twitter error: The access_token method must be called with a request_token #26

Closed
adsahay opened this Issue Jun 14, 2012 · 2 comments

Comments

Projects
None yet
3 participants

adsahay commented Jun 14, 2012

A couple of days ago my perfectly functional twitter integration broke down. Trying to authorize a twitter account is resulting in an error in oauth.py.handle_oauth1_response. I printed the response from twitter which is something like this:

{'<?xml version': u'"1.0" encoding="UTF-8"?>
<hash> 
<error>The access_token method must be called with a request_token</error>
<request>/oauth/access_token?oauth_body_hash=2jmj7l5rSw0yVb/vlWAYkK/YBwk=', 
'oauth_consumer_key': u'mykey', 'oauth_nonce': u'54855713', 
'oauth_signature': u'l4p6yhF8bx+dtUxxgY8IM4gnXgQ=
</request>
</hash>', 
'oauth_signature_method': u'HMAC-SHA1', 
'oauth_timestamp': u'1339648593', 
'oauth_token': u'61690026-MvKpp8RnOF9phm7AUD4ZrRpoOivpIWmFxxxfaVJXO', 
'oauth_verifier': u'S6xNfL1KtUQfppvsC6Cyyqus58ba87R5tHOxNf8NA', 
'oauth_version': u'1.0'} 

Any help in debugging this?

adsahay commented Jun 14, 2012

Note:

I've changed http to https in the various urls (base_url, access_token_url etc) and reset my consumer keys, and it seems to work for now.

For what it's worth, I encountered a similar error and that fix worked for me too. Thanks for posting!

@mitsuhiko mitsuhiko closed this in d7f0f6c Oct 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment