UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-12: ordinal not in range(128)
__call__
return self.wsgi_app(environ, start_response)
wsgi_app
response = self.make_response(self.handle_exception(e))
handle_exception
reraise(exc_type, exc_value, tb)
wsgi_app
response = self.full_dispatch_request()
full_dispatch_request
rv = self.handle_user_exception(e)
handle_user_exception
reraise(exc_type, exc_value, tb)
full_dispatch_request
rv = self.dispatch_request()
dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
show_item
result = item.do_show(rev)
do_show
show_navigation=show_navigation,
render_template
return render_theme_template(get_current_theme(), template, **context)
render_theme_template
return render_template(template_name, **context)
render_template
context, ctx.app)
_render
rv = template.render(context)
render
return self.environment.handle_exception(exc_info, True)
handle_exception
reraise(exc_type, exc_value, tb)
top-level template code
{% import "itemviews.html" as itemviews with context %}
make_module
return TemplateModule(self, self.new_context(vars, shared, locals))
__init__
self._body_stream = list(template.root_render_func(context))
top-level template code
{%- if user.is_subscribed_to(item) %}
is_subscribed_to
for name in meta.get(NAME, []))
<genexpr>
for name in meta.get(NAME, []))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-12: ordinal not in range(128)
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump()
shows all variables in the framedump(obj)
dumps all that's known about the object