Closed Bug 1253685 Opened 8 years ago Closed 8 years ago

[traceback] Invalid block tag: 'set'

Categories

(support.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mythmon, Unassigned)

References

()

Details

(Whiteboard: u=contrib)

Attachments

(1 file)

This looks like a template got rendered as a Django template instead of a Jinja2 template.

https://sentry.prod.mozaws.net/operations/sumo/group/241391/

TemplateSyntaxError Invalid block tag: 'set'

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "newrelic/hooks/framework_django.py", line 499, in wrapper
    return wrapped(*args, **kwargs)
  File "kitsune/community/views.py", line 136, in metrics
    return render(request, 'community/metrics.html')
  File "kitsune/sumo/monkeypatch.py", line 128, in _more_info
    resp = fun(request, template_name, *args, **kwargs)
  File "django/shortcuts.py", line 67, in render
    template_name, context, request=request, using=using)
  File "django/template/loader.py", line 98, in render_to_string
    template = get_template(template_name, using=using)
  File "django/template/loader.py", line 35, in get_template
    return engine.get_template(template_name, dirs)
  File "django/template/backends/django.py", line 30, in get_template
    return Template(self.engine.get_template(template_name, dirs))
  File "django/template/engine.py", line 167, in get_template
    template, origin = self.find_template(template_name, dirs)
  File "django/template/engine.py", line 141, in find_template
    source, display_name = loader(name, dirs)
  File "django/template/loaders/base.py", line 13, in __call__
    return self.load_template(template_name, template_dirs)
  File "django/template/loaders/base.py", line 23, in load_template
    template = Template(source, origin, template_name, self.engine)
  File "django/template/base.py", line 191, in __init__
    self.nodelist = engine.compile_string(template_string, origin)
  File "django/template/engine.py", line 261, in compile_string
    return parser.parse()
  File "django/template/base.py", line 342, in parse
    compiled_result = compile_func(self, token)
  File "django/template/loader_tags.py", line 210, in do_extends
    nodelist = parser.parse()
  File "django/template/base.py", line 340, in parse
    self.invalid_block_tag(token, command, parse_until)
  File "django/template/base.py", line 396, in invalid_block_tag
    raise self.error(token, "Invalid block tag: '%s'" % command)
This has been deployed.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Verified FIXED on https://support.mozilla.org/en-US/community/metrics which both returns 200 OK and displays the appropriate content; thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: