Issue #191: 500 Internal Server Error while viewing some Changesets (conservancy/kallithea)

heromyth issues-reply at bitbucket.org
Sun Feb 14 03:09:29 UTC 2016


New issue 191: 500 Internal Server Error while viewing some Changesets
https://bitbucket.org/conservancy/kallithea/issues/191/500-internal-server-error-while-viewing

heromyth:

I'm using Python 2.7.11 and the newest Kallithea sources.

Here is my log:


```
#!python

2016-02-14 11:07:21.676 INFO  [kallithea.lib.base] IP: 127.0.0.1 User: <AuthUser
('id:2[zxp] auth:True')> accessed /MoistureTesting/changeset/29f93515da9ed21bf41
79166eb3f8fe5af4e5880
2016-02-14 11:07:21.721 INFO  [kallithea.lib.auth] user <AuthUser('id:2[zxp] aut
h:True')> authenticated with regular auth @ ChangesetController:index
Error - <type 'exceptions.UnicodeDecodeError'>: 'utf8' codec can't decode byte 0
xa8 in position 39: invalid start byte
URL: http://127.0.0.1:5000/MoistureTesting/changeset/29f93515da9ed21bf4179166eb3
f8fe5af4e5880
File 'D:\\Kallithea\\Env\\lib\\site-packages\\weberror-0.11-py2.7.egg\\weberror\
\errormiddleware.py', line 171 in __call__
  app_iter = self.application(environ, sr_checker)
File 'D:\\Kallithea\\Sources\\kallithea\\lib\\middleware\\sessionmiddleware.py',
 line 62 in __call__
  return self.wrap_app(environ, session_start_response)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\routes-1.13-py2.7.egg\\routes\\mid
dleware.py', line 131 in __call__
  response = self.app(environ, start_response)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\ws
giapp.py', line 103 in __call__
  response = self.dispatch(controller, environ, start_response)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\ws
giapp.py', line 313 in dispatch
  return controller(environ, start_response)
File 'D:\\Kallithea\\Sources\\kallithea\\lib\\base.py', line 449 in __call__
  return WSGIController.__call__(self, environ, start_response)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\co
ntrollers\\core.py', line 214 in __call__
  response = self._dispatch_call()
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\co
ntrollers\\core.py', line 164 in _dispatch_call
  response = self._inspect_call(func)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\co
ntrollers\\core.py', line 107 in _inspect_call
  result = self._perform_call(func, args)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\co
ntrollers\\core.py', line 57 in _perform_call
  return func(**args)
File '<decorator-gen-23>', line 2 in index
File 'D:\\Kallithea\\Sources\\kallithea\\lib\\auth.py', line 793 in __wrapper
  return func(*fargs, **fkwargs)
File '<decorator-gen-22>', line 2 in index
File 'D:\\Kallithea\\Sources\\kallithea\\lib\\auth.py', line 838 in __wrapper
  return func(*fargs, **fkwargs)
File 'D:\\Kallithea\\Sources\\kallithea\\controllers\\changeset.py', line 324 in
 index
  return self._index(revision, method=method)
File 'D:\\Kallithea\\Sources\\kallithea\\controllers\\changeset.py', line 312 in
 _index
  return render('changeset/changeset.html')
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\te
mplating.py', line 244 in render_mako
  cache_type=cache_type, cache_expire=cache_expire)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\te
mplating.py', line 219 in cached_template
  return render_func()
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\te
mplating.py', line 241 in render_template
  return literal(template.render_unicode(**globs))
File 'D:\\Kallithea\\Env\\lib\\site-packages\\mako-1.0.0-py2.7.egg\\mako\\templa
te.py', line 452 in render_unicode
  as_unicode=True)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\mako-1.0.0-py2.7.egg\\mako\\runtim
e.py', line 803 in _render
  **_kwargs_for_callable(callable_, data))
File 'D:\\Kallithea\\Env\\lib\\site-packages\\mako-1.0.0-py2.7.egg\\mako\\runtim
e.py', line 835 in _render_context
  _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\mako-1.0.0-py2.7.egg\\mako\\runtim
e.py', line 855 in _exec_template
  _render_error(template, context, compat.exception_as())
File 'D:\\Kallithea\\Env\\lib\\site-packages\\mako-1.0.0-py2.7.egg\\mako\\runtim
e.py', line 864 in _render_error
  result = template.error_handler(context, error)
File 'D:\\Kallithea\\Env\\lib\\site-packages\\pylons-1.0.2-py2.7.egg\\pylons\\er
ror.py', line 22 in handle_mako_error
  raise (exc, None, sys.exc_info()[2])
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa8 in position 39: invalid
start byte


CGI Variables
-------------
  CONTENT_TYPE: '; charset="utf-8"'
  HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'

  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_ACCEPT_LANGUAGE: 'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3'
  HTTP_CONNECTION: 'keep-alive'
  HTTP_COOKIE: 'kallithea=558df108640fbadb80322c0b409b0e907324bfae1f938d96ea8643
169125505540a0d2cf'
  HTTP_HOST: '127.0.0.1:5000'
  HTTP_REFERER: 'http://127.0.0.1:5000/MoistureTesting'
  HTTP_USER_AGENT: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101
Firefox/44.0'
  PATH_INFO: '/MoistureTesting/changeset/29f93515da9ed21bf4179166eb3f8fe5af4e588
0'
  REMOTE_ADDR: '127.0.0.1'
  REQUEST_METHOD: 'GET'
  SERVER_NAME: 'de.as.pptv.com'
  SERVER_PORT: '5000'
  SERVER_PROTOCOL: 'HTTP/1.1'
  SERVER_SOFTWARE: 'waitress'


WSGI Variables
--------------
  application: <kallithea.lib.middleware.sessionmiddleware.SecureSessionMiddlewa
re object at 0x0496E1F0>
  beaker.get_session: <bound method SecureSessionMiddleware._get_session of <kal
lithea.lib.middleware.sessionmiddleware.SecureSessionMiddleware object at 0x0496
E1F0>>
  beaker.session: {'_authentication_token': '80169651534697644789578819454807252
033', 'authuser': {'is_external_auth': False, 'user_id': 2}, '_accessed_time': 1
455419241.676, '_creation_time': 1455418349.716}
  paste.registry: <paste.registry.Registry object at 0x05E77330>
  paste.throw_errors: True
  pylons.action_method: <bound method ChangesetController.index of <kallithea.co
ntrollers.changeset.ChangesetController object at 0x05E66B50>>
  pylons.controller: <kallithea.controllers.changeset.ChangesetController object
 at 0x05E66B50>
  pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
  pylons.log_debug: True
  pylons.pylons: <pylons.util.PylonsContext object at 0x05E66D30>
  pylons.routes_dict: {'action': u'index', 'controller': u'changeset', 'revision
': u'29f93515da9ed21bf4179166eb3f8fe5af4e5880', 'repo_name': u'MoistureTesting'}

  routes.cached_hostinfo: {'host': '127.0.0.1:5000', 'protocol': 'http'}
  routes.route: <routes.route.Route object at 0x047063D0>
  routes.url: <routes.util.URLGenerator object at 0x05E66A50>
  webob._parsed_query_vars: (GET([]), '')
  wsgi process: 'Multithreaded'
  wsgi.file_wrapper: <class 'waitress.buffers.ReadOnlyFileBasedBuffer'>
  wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x05E66A50>, {'acti
on': u'index', 'controller': u'changeset', 'revision': u'29f93515da9ed21bf417916
6eb3f8fe5af4e5880', 'repo_name': u'MoistureTesting'})
------------------------------------------------------------
2016-02-14 11:07:22.627 INFO  [kallithea.lib.base] IP: 127.0.0.1 User: <AuthUser
('id:2[zxp] auth:True')> accessed /MoistureTesting/changeset/29f93515da9ed21bf41
79166eb3f8fe5af4e5880
2016-02-14 11:07:22.627 INFO  [kallithea.RequestWrapper] IP: 127.0.0.1 Request t
o /MoistureTesting/changeset/29f93515da9ed21bf4179166eb3f8fe5af4e5880 time: 0.96
7s
```





More information about the kallithea-general mailing list