Jinja error in ORES
Open, Needs TriagePublic

Description

It's caused by requests for "/", but I was unable to reproduce the error.

12018-01-02 18:15:02,920 ERROR:ores.wsgi.server -- Exception on / [GET]
2Traceback (most recent call last):
3 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/lexer.py", line 585, in wrap
4 .decode('unicode-escape')
5LookupError: unknown encoding: unicode-escape
6
7During handling of the above exception, another exception occurred:
8
9Traceback (most recent call last):
10 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/app.py", line 1817, in wsgi_app
11 response = self.full_dispatch_request()
12 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/app.py", line 1477, in full_dispatch_request
13 rv = self.handle_user_exception(e)
14 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/app.py", line 1381, in handle_user_exception
15 reraise(exc_type, exc_value, tb)
16 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
17 raise value
18 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/app.py", line 1475, in full_dispatch_request
19 rv = self.dispatch_request()
20 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/app.py", line 1461, in dispatch_request
21 return self.view_functions[rule.endpoint](**req.view_args)
22 File "./ores/wsgi/routes/__init__.py", line 20, in index
23 "home.html", **config['ores'].get('home', {}))
24 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/flask/templating.py", line 127, in render_template
25 return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
26 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/environment.py", line 869, in get_or_select_template
27 return self.get_template(template_name_or_list, parent, globals)
28 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/environment.py", line 830, in get_template
29 return self._load_template(name, self.make_globals(globals))
30 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/environment.py", line 804, in _load_template
31 template = self.loader.load(self, name, globals)
32 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/loaders.py", line 125, in load
33 code = environment.compile(source, name, filename)
34 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/environment.py", line 591, in compile
35 self.handle_exception(exc_info, source_hint=source_hint)
36 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/environment.py", line 780, in handle_exception
37 reraise(exc_type, exc_value, tb)
38 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/_compat.py", line 37, in reraise
39 raise value.with_traceback(tb)
40 File "/srv/deployment/ores/deploy-cache/revs/b67bba77acb7c0ffc678201c9f3f54f198da6650/submodules/ores/ores/wsgi/templates/home.html", line 106, in template
41 {{footer|default('Written in <a href="https://python.org">Python 3</a>')|safe}}
42 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/environment.py", line 497, in _parse
43 return Parser(self, source, name, encode_filename(filename)).parse()
44 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 896, in parse
45 result = nodes.Template(self.subparse(), lineno=1)
46 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 870, in subparse
47 add_data(self.parse_tuple(with_condexpr=True))
48 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 615, in parse_tuple
49 args.append(parse())
50 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 427, in parse_expression
51 return self.parse_condexpr()
52 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 432, in parse_condexpr
53 expr1 = self.parse_or()
54 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 445, in parse_or
55 left = self.parse_and()
56 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 454, in parse_and
57 left = self.parse_not()
58 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 465, in parse_not
59 return self.parse_compare()
60 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 469, in parse_compare
61 expr = self.parse_math1()
62 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 491, in parse_math1
63 left = self.parse_concat()
64 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 502, in parse_concat
65 args = [self.parse_math2()]
66 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 512, in parse_math2
67 left = self.parse_pow()
68 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 523, in parse_pow
69 left = self.parse_unary()
70 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 544, in parse_unary
71 node = self.parse_filter_expr(node)
72 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 680, in parse_filter_expr
73 node = self.parse_filter(node)
74 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 805, in parse_filter
75 args, kwargs, dyn_args, dyn_kwargs = self.parse_call(None)
76 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/parser.py", line 749, in parse_call
77 token = self.stream.expect('lparen')
78 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/lexer.py", line 390, in expect
79 next(self)
80 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/lexer.py", line 361, in __next__
81 self.current = next(self._iter)
82 File "/srv/deployment/ores/venv/lib/python3.4/site-packages/jinja2/lexer.py", line 588, in wrap
83 raise TemplateSyntaxError(msg, lineno, name, filename)
84jinja2.exceptions.TemplateSyntaxError: unicode-escape

Related Objects

awight created this task.Jan 2 2018, 6:38 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 2 2018, 6:38 PM