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

Can't get the examples work (Facebook/Twitter) #48

jon301 opened this issue Oct 30, 2013 · 1 comment


Copy link

commented Oct 30, 2013


I've tried the examples of the repository and could not make them work ( /
I am getting a server error on the callback from Facebook or Twitter.

Here is the traceback for the Twitter example:

[30/Oct/2013 22:16:10] "GET /login HTTP/1.1" 302 -
[30/Oct/2013 22:16:14] "GET /oauthorized?oauth_token=84udW9IRVwZgjfEhbnpnzIaff2gggRMLj7gO3VDV4&oauth_verifier=7mKgKj4UvG669vWGeE5OmGZ1HXTYSo7bsLvyVA0aVlQ HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask/", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask_oauthlib/", line 587, in decorated
    data = self.handle_oauth1_response()
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/flask_oauthlib/", line 526, in handle_oauth1_response
  File "/home/jon301/envs/typefaster/lib/python2.7/site-packages/oauthlib/oauth1/rfc5849/", line 273, in sign
    elif http_method.upper() in ('GET', 'HEAD') and has_params:
AttributeError: 'NoneType' object has no attribute 'upper'

It seems like the access token method is None.

What am I doing wrong ?

Thanks for your help !

lepture added a commit that referenced this issue Oct 31, 2013


This comment has been minimized.

Copy link

commented Oct 31, 2013

@jon301 Sorry, my mistake.

@lepture lepture closed this Oct 31, 2013

lepture added a commit that referenced this issue Oct 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.