Django-allauth: Facebook First Login "Connection refused" Error

Created on 4 Jul 2013  路  5Comments  路  Source: pennersr/django-allauth

Hello,

I use allauth for facebook login for my Django 1.5 app. When user first login using facebook account, an error accur. If close tab and re-visit new tab, it work without any problem. But first login make error.

Error code:

error at /accounts/facebook/login/callback/
[Errno 61] Connection refused
Request Method: GET
Request URL: http://localhost:8000/accounts/facebook/login/callback/?code=AQCZ_26qzHPYpf0gnu7OA89vh8vH6X3f-Ac53cg56zKH6b04LJWWsx1mL8tjEi6r67HPOBTDYcPG7TqcqfUR2rRAOqBRMFFRyc3mx0l1B878t2athsKYkrQPpKX49JSWB-P3gvh5FdXwr_aNQAQZ56xS7Rfk8lPvVQu2wP2cE5hhzC3luVe0F0AkBOwlRAK-Dt09ssBbCiX91JD0RCFH5XXVDEJ8-QQikYQqLJYshYxGCaYMuKxLFRj8qtdlJ77LA93GW6m67wlmGlQBoxaKd0M6p6KtJM409hcwaJRF1qgA0CqJLmTe-8K6x1jxHIKgxUY&state=kjieLJXdkBsx
Django Version: 1.5.1
Exception Type: error
Exception Value:
[Errno 61] Connection refused
Exception Location: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py in create_connection, line 571
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path:
['/Users/muhammed/Documents/padx',
'/Library/Python/2.7/site-packages/psycopg2-2.5-py2.7-macosx-10.8-intel.egg',
'/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg',
'/Library/Python/2.7/site-packages/django_honeypot-0.3.0-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages']

How can i solve this?

Most helpful comment

Ah, the connection refused is on sending e-mail? You can configure this using Django's EMAIL_HOST setting, or, setup a mail server at local host. Otherwise, set email verification to none.

All 5 comments

I can't see this issue at issue list. is there any problem?

There is no issue -- you are so far the first the report an issue like this.

This is not likely to be an issue in allauth.

Btw, I don't see a stack trace, so I cannot tell where the connection refused occurs?

How can i stop email confirmation? I guess problem causes for email sending?

Ah, the connection refused is on sending e-mail? You can configure this using Django's EMAIL_HOST setting, or, setup a mail server at local host. Otherwise, set email verification to none.

Thank you. Your helps very helpful for me...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aliabbas-2012 picture aliabbas-2012  路  6Comments

falc410 picture falc410  路  4Comments

hyunwoona picture hyunwoona  路  4Comments

khorolets picture khorolets  路  3Comments

nordbit picture nordbit  路  5Comments