Skip to content

URLError at /social-auth/complete/facebook/ #315

@night-crawler

Description

@night-crawler

Hi. I have some trouble with facebook backend. Also i've tried @krvss fork and got the same error. I see, almost all backends work fine (google-oauth2, instagram, flickr, vkontakte, yandex, ...), so it seems the reason is on my side.
I guess the wrong settings may be the reason. I fill only "App Domain" and "Site URL" - is it enough?
So, i got the fb question after redirect, and then this:

Environment:

Request Method: GET
Request URL: http://mydomain.lol/social-auth/complete/facebook/?code=AQBOGXjtD2ruIyF3SHGKN_vpU9KszD1By52QjXHym7SU12_fMy1hfFJuRYDzqVfbVGIaYgSt9Lh5TfADqsBvqL5tzL3IJ6tT6i9b3G_V-vc0EJPzwDF9fEMG4LNTVEuDjq7Lp1Bo6wEFWxqy5vzMRuSr4mrlCoicS2xJtN27A1kpZSOR0FjBSTHnoLsBp28f6Hc

Django Version: 1.4
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'social_auth',
'tel.po',
'tel.telehome')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view
  2.     return view_func(_args, *_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.6.7-py2.7.egg/social_auth/views.py" in wrapper
  3.             return func(request, backend, _args, *_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.6.7-py2.7.egg/social_auth/views.py" in complete
  4. return complete_process(request, backend, _args, *_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.6.7-py2.7.egg/social_auth/views.py" in complete_process
  5. user = auth_complete(request, backend, _args, *_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.6.7-py2.7.egg/social_auth/views.py" in auth_complete
  6.                                  **kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/django_social_auth-0.6.7-py2.7.egg/social_auth/backends/facebook.py" in auth_complete
  7.         response = cgi.parse_qs(urlopen(url).read())
    
    File "/usr/lib/python2.7/urllib2.py" in urlopen
  8. return _opener.open(url, data, timeout)
    
    File "/usr/lib/python2.7/urllib2.py" in open
  9.     response = self._open(req, data)
    
    File "/usr/lib/python2.7/urllib2.py" in _open
  10.                               '_open', req)
    
    File "/usr/lib/python2.7/urllib2.py" in _call_chain
  11.         result = func(*args)
    
    File "/usr/lib/python2.7/urllib2.py" in https_open
  12.         return self.do_open(httplib.HTTPSConnection, req)
    
    File "/usr/lib/python2.7/urllib2.py" in do_open
  13.         raise URLError(err)
    

Exception Type: URLError at /social-auth/complete/facebook/
Exception Value: <urlopen error [Errno 104] Connection reset by peer>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions