{"action":"opened","issue":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/792","labels_url":"https://api.github.com/repos/omab/python-social-auth/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/omab/python-social-auth/issues/792/comments","events_url":"https://api.github.com/repos/omab/python-social-auth/issues/792/events","html_url":"https://github.com/omab/python-social-auth/issues/792","id":119471799,"number":792,"title":"Occasional social.exceptions:AuthStateMissing","user":{"login":"ddehghan","id":717686,"avatar_url":"https://avatars.githubusercontent.com/u/717686?v=3","gravatar_id":"","url":"https://api.github.com/users/ddehghan","html_url":"https://github.com/ddehghan","followers_url":"https://api.github.com/users/ddehghan/followers","following_url":"https://api.github.com/users/ddehghan/following{/other_user}","gists_url":"https://api.github.com/users/ddehghan/gists{/gist_id}","starred_url":"https://api.github.com/users/ddehghan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddehghan/subscriptions","organizations_url":"https://api.github.com/users/ddehghan/orgs","repos_url":"https://api.github.com/users/ddehghan/repos","events_url":"https://api.github.com/users/ddehghan/events{/privacy}","received_events_url":"https://api.github.com/users/ddehghan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T11:16:54Z","updated_at":"2015-11-30T11:16:54Z","closed_at":null,"body":"Hi guys,\r\n\r\nI get this exception for about 1-3% of daily users. I am not sure what the problem is. \r\n\r\n**Setup:**\r\n\r\ndjango 1.7\r\ngoogle-oauth\r\n\r\n\r\n**Things I tired so far:**\r\n\r\n- Originally I thought it was caused by sessions missing in the database. I deleted all the session to see if I can get a 100% repro. But i could not get it to repro for me. \r\n- I traced creation of state in the session table. I can see that the state variable is set before google auth redirection and then it is read back again. It works on my machine consistently. So I can not repro the exception.\r\n- I have read all the related bug on AuthStateMissing but none of the solutions worked for me. \r\n\r\n\r\nIt seems that the problem is persistent. I can see the use attempting to login several times and gets this error and then gives up. Few hours later another user attempts several times and gets several of these exceptions. I am not 100% sure that after several errors the user gets though or the user gives up. I bet is that the user gives up. \r\n\r\n\r\n**Here is is the stack trace:**\r\n\r\nTraceback (most recent call last):\r\nFile \"/usr/local/lib/python2.7/dist-packages/newrelic-2.58.1.44/newrelic/api/web_transaction.py\", line 717, in __iter__\r\nFile \"/usr/local/lib/python2.7/dist-packages/newrelic-2.58.1.44/newrelic/api/web_transaction.py\", line 1093, in __call__\r\nFile \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py\", line 189, in __call__\r\nFile \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\", line 132, in get_response\r\nFile \"/usr/local/lib/python2.7/dist-packages/newrelic-2.58.1.44/newrelic/hooks/framework_django.py\", line 499, in wrapper\r\nFile \"/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py\", line 57, in _wrapped_view_func\r\nFile \"/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py\", line 58, in wrapped_view\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/apps/django_app/utils.py\", line 51, in wrapper\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/apps/django_app/views.py\", line 28, in complete\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/actions.py\", line 43, in do_complete\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/backends/base.py\", line 41, in complete\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/utils.py\", line 229, in wrapper\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/backends/oauth.py\", line 375, in auth_complete\r\nFile \"/usr/local/lib/python2.7/dist-packages/social/backends/oauth.py\", line 88, in validate_state\r\n\r\n\r\n\r\n"}}