Closed heximcz closed 6 years ago
Hi, I have a problem with FB login. I has try last version 0.10.2 and now 0.9.3 ( all installed over pip ) with same problem:
TraceBack
Environment: Request Method: GET Request URL: https://my.domain/account/signin/complete-oauth2/?code=AQCFUrsurYSxNpWHHPDxmEIkVYwhEDYuBIGdY7uFNi6WrrFhXzcl7IRSlX4Iz_2Ff7sVfJDVRP4d7x7uZ3bSr3OiQXzzZdCAsZCOqUEVcpsgYtI8vAop1nJRCV1wYtgixpCBFbwZqP5Rdlc_4OsgMjHCD0S3v1sTjF3uMoJxvtivLb4l4W1yRLosoxab3tKdLQjGwrwrHX8ZIcYE0Ku65UkU4VUMo-rywe_HkJbL9Vmc0pUlxMx6nIqOrbs75Ttm8j9vRpz2dKyvA7wszr8rKTHHY8nAIAUylhIbSvEX56BUOCqJBc4Xv0KvJ-2y7AW7RrLfGGEkhJmrzo8MIRYf-FxT9mCO3XNcUjzkQ-6n5LMM5Q&state=99bfa005bcea5386cd94d0368c31823c303c331f1e81d023fbc884181fa17bc2 Django Version: 1.7.11 Python Version: 2.7.13 Installed Applications: ('longerusername', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.sitemaps', 'django.contrib.messages', 'compressor', 'askbot', 'askbot.deps.django_authopenid', 'askbot.deps.livesettings', 'keyedcache', 'robots', 'django_countries', 'djcelery', 'djkombu', 'followit', 'tinymce', 'askbot.deps.group_messaging', 'captcha', 'avatar') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware', 'askbot.middleware.forum_mode.ForumModeMiddleware', 'askbot.middleware.cancel.CancelActionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'askbot.middleware.view_log.ViewLogMiddleware', 'askbot.middleware.spaceless.SpacelessMiddleware', 'askbot.middleware.csrf.CsrfViewMiddleware') Traceback: File ".../virtenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = wrapped_callback(request, *callback_args, **callback_kwargs) File ".../virtenv/local/lib/python2.7/site-packages/askbot/deps/django_authopenid/views.py" in complete_oauth2_signin 281. parser=params.get('response_parser', None) File ".../virtenv/local/lib/python2.7/site-packages/sanction/client.py" in request_token 126. assert(self.access_token is not None) Exception Type: AssertionError at /account/signin/complete-oauth2/ Exception Value:
UWSGI LOG
[pid: 7969|app: 0|req: 3/214] 2001:67c::... () {46 vars in 1784 bytes} [Tue Feb 27 11:46:41 2018] GET /account/signin/complete-oauth2/?code=AQBGBhYIDcTnGilnSkDfSVhdVL-N945VY_8HRCgmT2UMaVLOADGEGNGUwozc8af2g3xVJNB7sfLAv3xDryz8h3cwmGMdgBZfsnJrOUZUiH7kIGugjIXljdZEbOfC2bogip--z1vuraVHyR1G6V3A7V7UQ_NGxs9RbsFTIY1qcEkFZErEPw-0F__Y_rJySzi9WGx7QFCr36j5soLuhDP3Yqlg431S7XUyqIjBxgTCv6n4O-AaFKsVuJBJSL0N_uInn4g8QJdOd4RCOnz-4ugJbDxNIlLIeHfU4msEOMn9ew2szCvcLpIXW9hW5VumfCh_BCJE_y5sP0lb6o83A8PZlPOFsp-SQJR_yPKBeSsGs3kRDg&state=6018b7321609ccb11b60eb8861f759abbb415e79888066be7f6e0b85048bccec => generated 67266 bytes in 340 msecs (HTTP/2.0 500) 4 headers in 222 bytes (1 switches on core 0)
NGINX ACCESS LOG
2001:67c:... - - [27/Feb/2018:18:46:41 +0100] "my.example.domain" "GET /account/signin/complete-oauth2/?code=AQBGBhYIDcTnGilnSkDfSVhdVL-N945VY_8HRCgmT2UMaVLOADGEGNGUwozc8af2g3xVJNB7sfLAv3xDryz8h3cwmGMdgBZfsnJrOUZUiH7kIGugjIXljdZEbOfC2bogip--z1vuraVHyR1G6V3A7V7UQ_NGxs9RbsFTIY1qcEkFZErEPw-0F__Y_rJySzi9WGx7QFCr36j5soLuhDP3Yqlg431S7XUyqIjBxgTCv6n4O-AaFKsVuJBJSL0N_uInn4g8QJdOd4RCOnz-4ugJbDxNIlLIeHfU4msEOMn9ew2szCvcLpIXW9hW5VumfCh_BCJE_y5sP0lb6o83A8PZlPOFsp-SQJR_yPKBeSsGs3kRDg&state=6018b7321609ccb11b60eb8861f759abbb415e79888066be7f6e0b85048bccec HTTP/2.0" 500 67520 "https://www.facebook.com/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0" "-"
Debug page
AssertionError at /account/signin/complete-oauth2/ No exception message supplied Request Method: GET Request URL: https://example.domain.my/account/signin/complete-oauth2/?code=AQAmXt6sgkiR2W9lUIoS6Q49EGAT6EybrfL8JyK8KmxEFLU_1AqdClJSGJUtyuqvZLr9TOeHrM9mYwtgjpOyZQJCjkDD6V5A02tVuUJssRIE5AkdbHBkEBosKEy8vLYqS3VtigAFKW5m4mfNSbEj17Ht5UpwGxn5bG7uXHU1WefuZwtHUVHDzpSSTVkbrzAZo0on1QDpZ-GcSNInPeYoeEfTlspCDxBKxiWAb5MPkQ05twTNAfJncihlpDr_3MkFy1_PQ9ZRfoRYenJuf2ExfjYLXJwGwewYIB6yg8X-Itbyy3F8BIptrrSEQdn0mrZa8WoDfCmWMkvBYcGdYcqbCP3vCLkqw9fhwXREhaN2QpMarw&state=ff9ce2b13a6e3a4665d399287680f259559595379516f4deb60d20bb981a6cb8 Django Version: 1.7.11 Exception Type: AssertionError Exception Location: /home/.../virtenv/local/lib/python2.7/site-packages/sanction/client.py in request_token, line 126 Python Executable: /usr/local/bin/uwsgi Python Version: 2.7.13 Python Path: ['.', '', '/home/.../virtenv/lib/python2.7', '/home/.../virtenv/lib/python2.7/plat-x86_64-linux-gnu', '/home/.../virtenv/lib/python2.7/lib-tk', '/home/.../virtenv/lib/python2.7/lib-old', '/home/.../virtenv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/.../virtenv/local/lib/python2.7/site-packages', '/home/.../virtenv/lib/python2.7/site-packages', '/home/...', '/home/.../askbot-site', '/home/...', '/home/.../virtenv/local/lib/python2.7/site-packages/askbot/deps']
Any idea how to fix this ?
Thank you.
Close #761
Hi, I have a problem with FB login. I has try last version 0.10.2 and now 0.9.3 ( all installed over pip ) with same problem:
TraceBack
UWSGI LOG
NGINX ACCESS LOG
Debug page
Any idea how to fix this ?
Thank you.