When I try to log in as a completely new Tumblr user with no existing account, I get the error in the title. I'm using social.apps.django_app.default and django.contrib.auth for my auth, nothing custom. An Auth.User object is created successfully, but not a Default.User Social Auth object.
Traceback (most recent call last):
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
return self.application(environ, start_response)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/dj_static.py", line 59, in __call__
return self.application(environ, start_response)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 206, in __call__
response = self.get_response(request)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django/core/handlers/base.py", line 196, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django/core/handlers/base.py", line 231, in handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django_extensions/management/technical_response.py", line 5, in null_technical_500_response
six.reraise(exc_type, exc_value, tb)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/social/apps/django_app/utils.py", line 45, in wrapper
return func(request, backend, *args, **kwargs)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/social/apps/django_app/views.py", line 21, in complete
redirect_name=REDIRECT_FIELD_NAME, *args, **kwargs)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/social/actions.py", line 72, in do_complete
login(strategy, user)
File "/Users/tklovett/.virtualenvs/telescope/lib/python2.7/site-packages/social/apps/django_app/views.py", line 44, in _do_login
expiration = social_user.expiration_datetime()
AttributeError: 'NoneType' object has no attribute 'expiration_datetime'
When I try to log in as a completely new Tumblr user with no existing account, I get the error in the title. I'm using social.apps.django_app.default and django.contrib.auth for my auth, nothing custom. An Auth.User object is created successfully, but not a Default.User Social Auth object.
In the function where the error occurs, user.social_user (and therefor social_user) is None. Which is why social_user.expiration_datetime() raises an uncaught exception.
Any idea what's going on?