fb login issue

26 views
Skip to first unread message

Ashok Ramesh

unread,
Jul 20, 2018, 4:48:36 AM7/20/18
to django...@googlegroups.com
Hi all,

I am signin using facebook authentication in local using SSL for https.

i'm getting the below error.

TypeError at /complete/facebook/

unsupported operand type(s) for +: 'NoneType' and 'int'


Screenshot from 2018-07-20 12-25-57.png

Mikhailo Keda

unread,
Jul 20, 2018, 6:36:18 AM7/20/18
to Django users
show full traceback, what packet are you using for fb authentication? what version? What version of fb api are you using? 

Ashok Ramesh

unread,
Jul 20, 2018, 7:03:21 AM7/20/18
to django...@googlegroups.com
Hi Mikhailo,

I'm using python-social-auth==0.2.21, python 2.7 and django1.11

On Fri, Jul 20, 2018 at 4:06 PM Mikhailo Keda <mri...@gmail.com> wrote:
show full traceback, what packet are you using for fb authentication? what version? What version of fb api are you using? 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a0410d4f-65f1-465d-8634-a22da508467b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason

unread,
Jul 20, 2018, 7:05:16 AM7/20/18
to Django users
Somewhere in your code before signing in, you're expecting an integer value in a variable, but it is in fact None.  Adding None and an int will get that error.

Christian Ledermann

unread,
Jul 20, 2018, 9:59:56 AM7/20/18
to django...@googlegroups.com
The version of social auth you are using is ancient, and most probably not work anymore.
try:
social-auth-core==1.7.0
social-auth-app-django==1.2.0
 


--
Best Regards,

Christian Ledermann

Newark-on-Trent - UK

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>
Reply all
Reply to author
Forward
0 new messages