[traceback] DoesNotExist: UserProfile matching query does not exist.

VERIFIED FIXED in 4.x (triaged)

Status

VERIFIED FIXED
7 years ago
3 years ago

People

(Reporter: stephend, Assigned: jbalogh)

Tracking

unspecified
4.x (triaged)

Details

(Whiteboard: [fromAutomation][phx], URL)

(Reporter)

Description

7 years ago
https://addons-dev.allizom.org/en-US/firefox/discovery/addon/nightly-and-aurora/ throws the following exception:

Traceback (most recent call last):

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/decorators.py", line 23, in wrapper
    return f(request, addon, *args, **kw)

  File "/data/www/addons-dev.allizom.org/zamboni/apps/discovery/views.py", line 224, in addon_detail
    'get_replies': Review.get_replies, 'src': src})

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 79, in render
    rendered = render_to_string(request, template, context)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 97, in render_to_string
    return template.render(**get_context())

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

  File "/data/www/addons-dev.allizom.org/zamboni/apps/discovery/templates/discovery/addons/detail.html", line 1, in top-level template code
    {% extends "discovery/addons/base.html" %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/discovery/templates/discovery/addons/base.html", line 1, in top-level template code
    {% extends "discovery/base.html" %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/discovery/templates/discovery/base.html", line 22, in top-level template code
    {% block content %}{% endblock %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/discovery/templates/discovery/addons/base.html", line 25, in block "content"
    {% block secondary %}{% endblock %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/discovery/templates/discovery/addons/detail.html", line 93, in block "secondary"
    {{ review_list_box(addon=addon, reviews=reviews) }}

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 147, in wrapper
    t = env.get_template(template).render(context)

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

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/templates/addons/review_list_box.html", line 2, in top-level template code
    {% cache reviews %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/amo/ext.py", line 22, in _cache_support
    return sup(key, obj, timeout, extra, caller)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/ext.py", line 74, in _cache_support
    return caching.base.cached_with(obj, caller, key, timeout)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/base.py", line 284, in cached_with
    return cached(f, key, timeout)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/base.py", line 264, in cached
    val = function()

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/templates/addons/review_list_box.html", line 14, in template
    {% trans user=review.user|user_link, date=review.created|datetime %}

  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 371, in getattr
    return getattr(obj, attribute)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/db/models/fields/related.py", line 314, in __get__
    rel_obj = rel_mgr.using(db).get(**params)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/db/models/query.py", line 349, in get
    % self.model._meta.object_name)

DoesNotExist: UserProfile matching query does not exist.
(Reporter)

Updated

7 years ago
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [fromAutomation]
(Assignee)

Updated

7 years ago
Assignee: nobody → jbalogh
Whiteboard: [fromAutomation] → [fromAutomation][phx]
Target Milestone: --- → 6.2.0
(Assignee)

Updated

7 years ago
Depends on: 678001
(Assignee)

Updated

7 years ago
Target Milestone: 6.2.0 → 4.x (triaged)
(Assignee)

Updated

7 years ago
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 1

7 years ago
Verified FIXED.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.