[traceback] TypeError: cannot concatenate 'str' and 'long' objects

VERIFIED FIXED in 5.12.9

Status

addons.mozilla.org Graveyard
Public Pages
--
critical
VERIFIED FIXED
7 years ago
2 years ago

People

(Reporter: stephend, Assigned: jbalogh)

Tracking

unspecified
5.12.9

Details

(Whiteboard: [fromAutomation], URL)

Traceback: https://addons.allizom.org/en-US/firefox/addon/twitterbar/:

Traceback (most recent call last):

  File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 109, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/amo_python/www/preview/zamboni/apps/addons/views.py", line 51, in decorated
    return f(request, *args, **kwargs)

  File "/data/amo_python/www/preview/zamboni/apps/addons/decorators.py", line 22, in wrapper
    return f(request, addon, *args, **kw)

  File "/data/amo_python/www/preview/zamboni/apps/addons/views.py", line 73, in addon_detail
    return extension_detail(request, addon)

  File "/data/amo_python/www/preview/zamboni/vendor/src/django-mobility/mobility/decorators.py", line 49, in wrapper
    return normal_fn(request, *args, **kw)

  File "/data/amo_python/www/preview/zamboni/apps/addons/views.py", line 138, in extension_detail
    return jingo.render(request, 'addons/details.html', data)

  File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 78, in render
    rendered = render_to_string(request, template, context)

  File "/data/amo_python/www/preview/zamboni/vendor/src/jingo/jingo/__init__.py", line 96, in render_to_string
    return template.render(**get_context())

  File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/amo_python/www/preview/zamboni/apps/addons/templates/addons/details.html", line 7, in top-level template code
    {% set previews = addon.previews.all() %}

  File "/data/amo_python/www/preview/zamboni/templates/base.html", line 98, in top-level template code
    {% block main_content %}

  File "/data/amo_python/www/preview/zamboni/templates/base.html", line 103, in block "main_content"
    {% block content %}{% endblock %}

  File "/data/amo_python/www/preview/zamboni/apps/addons/templates/addons/details.html", line 145, in block "content"
    {% include 'addons/qr_code.html' %}

  File "/data/amo_python/www/preview/zamboni/apps/addons/templates/addons/qr_code.html", line 4, in top-level template code
    <img src="{{ media('img/zamboni/qr_code_test/' + addon.id + '.jpg') }}"

TypeError: cannot concatenate 'str' and 'long' objects
(Assignee)

Comment 1

7 years ago
https://github.com/jbalogh/zamboni/commit/2b8adb4 

Are you finding these through automated tests?
Assignee: nobody → jbalogh
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Yes; our Selenium picked it up, since it iterates through a ton of add-ons in each category, for each app.

Verified FIXED; thanks for the quick turnaround.
Status: RESOLVED → VERIFIED
Whiteboard: [fromAutomation]
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.