Skip to content

Instantly share code, notes, and snippets.

@haldean
Created July 4, 2012 09:23
Show Gist options
  • Save haldean/3046322 to your computer and use it in GitHub Desktop.
Save haldean/3046322 to your computer and use it in GitHub Desktop.
pythonpackages error on login
Internal Server Error
Traceback (most recent call last):
File "/app/.heroku/venv/lib/python2.7/site-packages/waitress/channel.py", line 329, in service
task.service()
File "/app/.heroku/venv/lib/python2.7/site-packages/waitress/task.py", line 173, in service
self.execute()
File "/app/.heroku/venv/lib/python2.7/site-packages/waitress/task.py", line 380, in execute
app_iter = self.channel.server.application(env, start_response)
File "/app/.heroku/venv/lib/python2.7/site-packages/newrelic-1.2.1.265/newrelic/api/web_transaction.py", line 490, in __call__
result = application(environ, _start_response)
File "/app/.heroku/venv/lib/python2.7/site-packages/newrelic-1.2.1.265/newrelic/api/function_trace.py", line 82, in __call__
return self._nr_next_object(*args, **kwargs)
File "/app/.heroku/venv/lib/python2.7/site-packages/errormator_client/wsgi.py", line 48, in __call__
app_iter = self.app(environ, detect_headers)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/router.py", line 187, in __call__
response = self.handle_request(request)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/tweens.py", line 20, in excview_tween
response = handler(request)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/router.py", line 164, in handle_request
response = view_callable(context, request)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/config/views.py", line 333, in rendered_view
result = view(context, request)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/config/views.py", line 471, in _requestonly_view
response = view(request)
File "/app/src/vanity_app/vanity_app/views.py", line 198, in login
headers = remember(request, userid)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/security.py", line 174, in remember
return policy.remember(request, principal, **kw)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/authentication.py", line 397, in remember
return self.cookie.remember(request, principal, **kw)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/authentication.py", line 755, in remember
cookie_value = ticket.cookie_value()
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/authentication.py", line 449, in cookie_value
v = '%s%08x%s!' % (self.digest(), int(self.time),
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/authentication.py", line 446, in digest
self.user_data)
File "/app/.heroku/venv/lib/python2.7/site-packages/pyramid/authentication.py", line 514, in calculate_digest
+ tokens + b'\0' + user_data).hexdigest()
TypeError: cannot concatenate 'str' and 'NoneType' objects
(generated by waitress)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment