Internal Server Error: /oauth/complete/twitter/
TypeError at /oauth/complete/twitter/
argument of type 'NoneType' is not iterable
Request Method: GET
Request URL: http://readkorean.ips.waseda.ac.jp/oauth/complete/twitter/?redirect_state=8pamjXPJPmZ6wWLIK6TPmsWV08xpgOjV&oauth_token=L44N9QAAAAAA0IepAAABXIBFNDA&oauth_verifier=tKDCkyq3uLGfPEAPLjQgx2YeaSfAtVei
Django Version: 1.11
Python Executable: /opt/virtualenv/readkorean.org/bin/python
Python Version: 3.5.2
Python Path: ['/srv/www/readkorean.org', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/opt/virtualenv/readkorean.org/lib/python3.5/site-packages']
Server time: Wed, 7 Jun 2017 10:57:39 +0900
Installed Applications:
['survey_app',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'social_django',
'vinaigrette',
'pagedown',
'markdown_deux',
'el_pagination',
'simpleblog']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'social_django.middleware.SocialAuthExceptionMiddleware',
'django.middleware.locale.LocaleMiddleware']
Traceback:
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_django/utils.py" in wrapper
50. return func(request, backend, *args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_django/views.py" in complete
28. redirect_name=REDIRECT_FIELD_NAME, *args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_core/actions.py" in do_complete
41. user = backend.complete(user=user, *args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_core/backends/base.py" in complete
39. return self.auth_complete(*args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_core/utils.py" in wrapper
253. return func(*args, **kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_core/backends/oauth.py" in auth_complete
181. token = self.get_unauthorized_token()
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_core/backends/oauth.py" in get_unauthorized_token
200. raise AuthTokenError(self, 'Missing unauthorized token')
During handling of the above exception (Token error: Missing unauthorized token), another exception occurred:
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/shortcuts.py" in resolve_url
147. return reverse(to, args=args, kwargs=kwargs)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/urls/base.py" in reverse
91. return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/urls/resolvers.py" in _reverse_with_prefix
497. raise NoReverseMatch(msg)
During handling of the above exception (Reverse for 'None' not found. 'None' is not a valid view function or pattern name.), another exception occurred:
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/core/handlers/base.py" in process_exception_by_middleware
227. response = middleware_method(request, exception)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/social_django/middleware.py" in process_exception
51. return redirect(url)
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/shortcuts.py" in redirect
56. return redirect_class(resolve_url(to, *args, **kwargs))
File "/opt/virtualenv/readkorean.org/lib/python3.5/site-packages/django/shortcuts.py" in resolve_url
153. if '/' not in to and '.' not in to:
Exception Type: TypeError at /oauth/complete/twitter/
Exception Value: argument of type 'NoneType' is not iterable
Request information:
USER: taegukhandshake
GET:
oauth_token = 'L44N9QAAAAAA0IepAAABXIBFNDA'
oauth_verifier = 'tKDCkyq3uLGfPEAPLjQgx2YeaSfAtVei'
redirect_state = '8pamjXPJPmZ6wWLIK6TPmsWV08xpgOjV'
POST: No POST data
FILES: No FILES data
COOKIES:
_gat = '1'
_ga = 'GA1.3.1390045745.1496752345'
_gid = 'GA1.3.1894409811.1496752345'
sessionid = 'msgdrerhds3lo25k3vq27bd9thnesydr'
csrftoken = 'zP4qkhWFLeeoWfcdQoAVY1aP2a9U8dGxEjZ1MIX4PYOOyVchsJzBZo7T5tWafCRo'
META:
CONTEXT_DOCUMENT_ROOT = '/var/www/html'
CONTEXT_PREFIX = ''
CSRF_COOKIE = 'zP4qkhWFLeeoWfcdQoAVY1aP2a9U8dGxEjZ1MIX4PYOOyVchsJzBZo7T5tWafCRo'
DOCUMENT_ROOT = '/var/www/html'
GATEWAY_INTERFACE = 'CGI/1.1'
HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'
HTTP_ACCEPT_ENCODING = 'gzip, deflate'
HTTP_ACCEPT_LANGUAGE = 'en-PH,en-US;q=0.8,en;q=0.6'
HTTP_CONNECTION = 'keep-alive'
HTTP_COOKIE = '_gat=1; sessionid=msgdrerhds3lo25k3vq27bd9thnesydr; csrftoken=zP4qkhWFLeeoWfcdQoAVY1aP2a9U8dGxEjZ1MIX4PYOOyVchsJzBZo7T5tWafCRo; _ga=GA1.3.1390045745.1496752345; _gid=GA1.3.1894409811.1496752345'
HTTP_HOST = 'readkorean.ips.waseda.ac.jp'
HTTP_UPGRADE_INSECURE_REQUESTS = '1'
HTTP_USER_AGENT = 'Mozilla/5.0 (Linux; Android 5.1.1; SM-J500G Build/LMY48B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36'
PATH_INFO = '/oauth/complete/twitter/'
PATH_TRANSLATED = '/srv/www/readkorean.org/survey_website/wsgi.py/oauth/complete/twitter/'
QUERY_STRING = 'redirect_state=8pamjXPJPmZ6wWLIK6TPmsWV08xpgOjV&oauth_token=L44N9QAAAAAA0IepAAABXIBFNDA&oauth_verifier=tKDCkyq3uLGfPEAPLjQgx2YeaSfAtVei'
REMOTE_ADDR = '112.198.68.141'
REMOTE_PORT = '21520'
REQUEST_METHOD = 'GET'
REQUEST_SCHEME = 'http'
REQUEST_URI = '/oauth/complete/twitter/?redirect_state=8pamjXPJPmZ6wWLIK6TPmsWV08xpgOjV&oauth_token=L44N9QAAAAAA0IepAAABXIBFNDA&oauth_verifier=tKDCkyq3uLGfPEAPLjQgx2YeaSfAtVei'
SCRIPT_FILENAME = '/srv/www/readkorean.org/survey_website/wsgi.py'
SCRIPT_NAME = ''
SERVER_ADDR = '133.9.48.105'
SERVER_ADMIN = '[email protected]'
SERVER_NAME = 'readkorean.ips.waseda.ac.jp'
SERVER_PORT = '80'
SERVER_PROTOCOL = 'HTTP/1.1'
SERVER_SIGNATURE = '
Apache/2.4.18 (Ubuntu) Server at readkorean.ips.waseda.ac.jp Port 80\n'
SERVER_SOFTWARE = 'Apache/2.4.18 (Ubuntu)'
apache.version =
mod_wsgi.application_group = 'readkorean.ips.waseda.ac.jp|'
mod_wsgi.callable_object = 'application'
mod_wsgi.daemon_connects = '1'
mod_wsgi.daemon_restarts = '0'
mod_wsgi.daemon_start = '1496800659882731'
mod_wsgi.enable_sendfile = '0'
mod_wsgi.handler_script = ''
mod_wsgi.ignore_activity = '0'
mod_wsgi.listener_host = ''
mod_wsgi.listener_port = '80'
mod_wsgi.path_info = '/oauth/complete/twitter/'
mod_wsgi.process_group = 'readkorean.org'
mod_wsgi.queue_start = '1496800659882434'
mod_wsgi.request_handler = 'wsgi-script'
mod_wsgi.request_id = 'fsChD30VKMg'
mod_wsgi.request_start = '1496800659882110'
mod_wsgi.script_name = ''
mod_wsgi.script_reloading = '1'
mod_wsgi.script_start = '1496800659882898'
mod_wsgi.thread_id = 3
mod_wsgi.thread_requests = 24
mod_wsgi.total_requests = 73
mod_wsgi.version =
wsgi.errors = <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'>
wsgi.file_wrapper = ''
wsgi.input = <mod_wsgi.Input object at 0x7fe2b231e570>
wsgi.multiprocess = False
wsgi.multithread = True
wsgi.run_once = False
wsgi.url_scheme = 'http'
wsgi.version =