Project

General

Profile

Actions

Bug #5410

open

After converting to CE, we get the following error when trying to view some repos in the UI: "UnicodeDecodeError: 'ascii' codec can't decode byte" (full error in Description)

Added by Brad Silva over 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08.12.2017
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

When clicking on the name of some repos, the error: "500 Internal Server Error | The server has either erred or is incapable of performing the requested operation." is returned by the browser. In the logs, the below error occurs. We are running CE 4.9.0.

We can still clone the repos and do other code operations from the command line or other tools. This seems to only affect the Rhodecode Web UI (which make sense looking at the error).

The problem appears to be that these repos have non-ASCII characters that Rhodecode is trying to interpret as ASCII when preparing the web page for display.

Thanks,
Brad


2017-12-08 10:35:43.983 ERROR [rhodecode.config.middleware] error occurred handling this request for path: /***Redacted*********
Traceback (most recent call last):
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/tweens.py", line 22, in excview_tween
response = handler(request)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/router.py", line 158, in handle_request
view_name
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/view.py", line 547, in call_view
response = view_callable(context, request)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/viewderivers.py", line 393, in attr_view
return view(context, request)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/viewderivers.py", line 371, in predicate_wrapper
return view(context, request)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/viewderivers.py", line 465, in rendered_view
request, result, view_inst, context)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/renderers.py", line 432, in render_view
return self.render_to_response(response, system, request=request)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/renderers.py", line 455, in render_to_response
result = self.render(value, system_values, request=request)
File "/opt/rhodecode/store/w6kjp4h2szaa42f7yksgi3lqnpp2ax51-python2.7-pyramid-1.7.4/lib/python2.7/site-packages/pyramid/renderers.py", line 451, in render
result = renderer(value, system_values)
File "/opt/rhodecode/store/i429qpprvnq5h4kfz7dq1pybqs73x68s-python2.7-pyramid-mako-1.0.2/lib/python2.7/site-packages/pyramid_mako/
init.py", line 156, in __call_
reraise(MakoRenderingException(errtext), None, exc_info[2])
File "/opt/rhodecode/store/i429qpprvnq5h4kfz7dq1pybqs73x68s-python2.7-pyramid-mako-1.0.2/lib/python2.7/site-packages/pyramid_mako/init.py", line 148, in call
result = template.render_unicode(*system)
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/template.py", line 471, in render_unicode
as_unicode=True)
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/runtime.py", line 838, in _render
*
kwargs_for_callable(callable, data))
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/runtime.py", line 873, in render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/runtime.py", line 899, in _exec_template
callable
(context, *args, **kwargs)
File "_base_root_mako", line 85, in render_body
File "_base_base_mako", line 51, in render_body
File "_summary_base_mako", line 112, in render_main
File "rhodecode_templates_summary_summary_mako", line 52, in render_main
File "_base_base_mako", line 690, in render_repo_page_title
MakoRenderingException:

Traceback (most recent call last):
File "/opt/rhodecode/store/i429qpprvnq5h4kfz7dq1pybqs73x68s-python2.7-pyramid-mako-1.0.2/lib/python2.7/site-packages/pyramid_mako/init.py", line 148, in call
result = template.render_unicode(*system)
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/template.py", line 471, in render_unicode
as_unicode=True)
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/runtime.py", line 838, in _render
*
kwargs_for_callable(callable, data))
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/runtime.py", line 873, in render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/opt/rhodecode/store/wq83njhgkwcf0cl6623jzv69gj8v6y3i-python2.7-Mako-1.0.6/lib/python2.7/site-packages/mako/runtime.py", line 899, in _exec_template
callable
(context, *args, **kwargs)
File "/opt/rhodecode/store/6b1a7rcpl0vy12imy67f8chqpm1649p3-python2.7-rhodecode-enterprise-ce-4.9.0/lib/python2.7/site-packages/rhodecode/templates/base/root.mako", line 155, in render_body
${_('Please enable JavaScript to use RhodeCode Enterprise')}
File "/opt/rhodecode/store/6b1a7rcpl0vy12imy67f8chqpm1649p3-python2.7-rhodecode-enterprise-ce-4.9.0/lib/python2.7/site-packages/rhodecode/templates/base/base.mako", line 21, in render_body
${self.menu_bar_subnav()}
File "/opt/rhodecode/store/6b1a7rcpl0vy12imy67f8chqpm1649p3-python2.7-rhodecode-enterprise-ce-4.9.0/lib/python2.7/site-packages/rhodecode/templates/summary/base.mako", line 28, in render_main
${next.main()}
File "/opt/rhodecode/store/6b1a7rcpl0vy12imy67f8chqpm1649p3-python2.7-rhodecode-enterprise-ce-4.9.0/lib/python2.7/site-packages/rhodecode/templates/summary/summary.mako", line 13, in render_main
${self.repo_page_title(c.rhodecode_db_repo)}
File "/opt/rhodecode/store/6b1a7rcpl0vy12imy67f8chqpm1649p3-python2.7-rhodecode-enterprise-ce-4.9.0/lib/python2.7/site-packages/rhodecode/templates/summary/summary.mako", line 105, in render_repo_page_title
%if show_items:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 1: ordinal not in range(128)


Files

Screen Shot 2018-01-12 at 15.36.16.png (148 KB) Screen Shot 2018-01-12 at 15.36.16.png Marcin Kuzminski [CTO], 12.01.2018 15:40
Actions

Also available in: Atom PDF