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
HTTPError at /complete/twitter/ #485
Comments
Thanks for the report, I've update the path to the problematic API. |
@omab Any chance that this change can be pushed to pypi? I'm affected by this issue as well. |
@selwin, v0.7.7 released |
@omab Thanks a lot! :) |
I'm getting a similar login error, and I've update to 0.7.7 already (pip freeze confirms it): Request Method: GET Django Version: 1.4 Traceback:
Exception Type: HTTPError at /complete/twitter/ |
@edulix, that's and odd, I'm not able to reproduce it, which is the value printed if you do: from social_auth.backends.twitter import TWITTER_CHECK_AUTH
print TWITTER_CHECK_AUTH |
As I'm using v0.7.7 it prints https://api.twitter.com/1.1/account/verify_credentials.json. I've been debugging, take a look at this debugging session:
ipdb>
ipdb> user
ipdb> s
ipdb> n
ipdb> n
ipdb> self.data
ipdb> n
ipdb> n
ipdb> name By the way it was working correctly yesterday, and some users of my open source application (https://agoravoting.com) has already reported to me the same problem, in fact that's how I found it. BTW, if it's of any help, your demo in (http://social.matiasaguirre.net/ , I click in Oauth > Twitter) doesn't work for me either, though it maybe that because it's using the old 0.7.6, I don't know. Finally, I've added you to gmail chat if you need a more interactive debugging session =). |
False alarm, it's working here now. I was reusing the same oauth request token and that was the problem |
Same thing happened here, solved by upgrading. Again thanks a lot @omab ! |
Using tip-of-trunk. Twitter sign-ins suddenly don't complete
[10/Oct/2012 22:14:10] "GET /login/twitter/?next= HTTP/1.1" 302 0
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/decorators.py", line 39, in wrapper
return func(request, backend, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/views.py", line 39, in complete
return complete_process(request, backend, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/views.py", line 97, in complete_process
user = auth_complete(request, backend, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/views.py", line 170, in auth_complete
return backend.auth_complete(user=user, request=request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/backends/twitter.py", line 87, in auth_complete
return super(TwitterAuth, self).auth_complete(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/backends/init.py", line 601, in auth_complete
data = self.user_data(access_token)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/backends/twitter.py", line 76, in user_data
json = self.fetch_response(request)
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/backends/init.py", line 635, in fetch_response
response = dsa_urlopen(request.to_url())
File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.7.6-py2.7.egg/social_auth/utils.py", line 263, in dsa_urlopen
return urlopen(_args, *_kwargs)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 444, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
The text was updated successfully, but these errors were encountered: