Closed Bug 641417 Opened 15 years ago Closed 15 years ago

Traceback in zh-CN locale: "Unsupported format character"

Categories

(Input :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzel, Unassigned)

Details

(Whiteboard: [fromAutomation])

Traceback (most recent call last): File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/django/input.mozilla.com/reporter/apps/input/decorators.py", line 125, in negotiated return beta(request, *args, **kwargs) File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/utils/decorators.py", line 76, in _wrapped_view response = view_func(request, *args, **kwargs) File "/data/www/django/input.mozilla.com/reporter/apps/input/decorators.py", line 43, in cached_view return f(request, *args, **kwargs) File "/data/www/django/input.mozilla.com/reporter/apps/themes/views.py", line 118, in beta_index return jingo.render(request, 'themes/index.html', args) File "/data/www/django/input.mozilla.com/reporter/vendor/src/jingo/jingo/__init__.py", line 78, in render rendered = render_to_string(request, template, context) File "/data/www/django/input.mozilla.com/reporter/vendor/src/jingo/jingo/__init__.py", line 96, in render_to_string return template.render(**get_context()) File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/www/django/input.mozilla.com/reporter/apps/themes/templates/themes/index.html", line 1, in top-level template code {% extends "base.html" %} File "/data/www/django/input.mozilla.com/reporter/templates/base.html", line 65, in top-level template code {% block content %}{% endblock %} File "/data/www/django/input.mozilla.com/reporter/apps/themes/templates/themes/index.html", line 38, in block "content" {{ theme_list(themes) }} File "/data/www/django/input.mozilla.com/reporter/vendor/src/jingo/jingo/__init__.py", line 146, in wrapper t = env.get_template(template).render(context) File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/www/django/input.mozilla.com/reporter/apps/themes/templates/themes/theme_list.html", line 16, in top-level template code {% trans num=(theme.num_opinions-1), count=(theme.num_opinions-1)|numberfmt %} File "/data/www/django/input.mozilla.com/reporter/vendor/packages/jinja2/jinja2/_markupsafe/__init__.py", line 98, in __mod__ return self.__class__(unicode.__mod__(self, arg)) ValueError: unsupported format character '{' (0x7b) at index 1 <WSGIRequest GET:<QueryDict: {u'p': [u'vista'], u'page': [u'1']}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CSRF_COOKIE': 'ea21a9610fdccadc5219290396d62006', 'DOCUMENT_ROOT': '/data/www/django/input.mozilla.com/reporter', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'zh-cn,zh-hk,zh-tw,en-us', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'input.mozilla.com', 'HTTP_IF_MODIFIED_SINCE': 'Sun, 13 Mar 2011 19:34:15 GMT', 'HTTP_USER_AGENT': 'Sosospider+(+http://help.soso.com/webspider.htm)', 'HTTP_X_CLUSTER_CLIENT_IP': '124.115.0.27', 'PATH_INFO': u'/zh-CN/beta/themes', 'PATH_TRANSLATED': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi/zh-CN/beta/themes', 'QUERY_STRING': 'p=vista&page=1', 'REMOTE_ADDR': '10.8.81.200', 'REMOTE_PORT': '46212', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/zh-CN/beta/themes?p=vista&page=1', 'SCRIPT_FILENAME': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '10.8.81.19', 'SERVER_ADMIN': 'webmaster@mozilla.com', 'SERVER_NAME': 'input.mozilla.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache', 'mod_wsgi.application_group': 'input.mozilla.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': 'input', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 3), 'wsgi.errors': <mod_wsgi.Log object at 0x2b41f2f158b0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x2b41f2cc06c0>, 'wsgi.input': <mod_wsgi.Input object at 0x2b41f17c9930>, 'wsgi.loaded': datetime.datetime(2011, 3, 13, 18, 54, 52, 546150), 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>
This was resolved in the patch to prod.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
QA Verified fixed in prod. Note we were unable to reproduce this on stage. Automation has been written that should catch this quicker in the future.
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
Whiteboard: [fromAutomation]
Thanks!
Component: Input → General
Product: Webtools → Input
You need to log in before you can comment on or make changes to this bug.