DoesNotExist: User matching query does not exist.

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
7 years ago
6 years ago

People

(Reporter: retornam, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

7 years ago
Traceback (most recent call last):

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 80, in get_response
    response = middleware_method(request)

  File "/data/www/django/developer.mozilla.org/kuma/apps/dekicompat/middleware.py", line 40, in process_request
    user = auth.authenticate(authtoken=auth_token)

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/contrib/auth/__init__.py", line 52, in authenticate
    user = backend.authenticate(**credentials)

  File "/data/www/django/developer.mozilla.org/kuma/apps/dekicompat/backends.py", line 51, in authenticate
    user = self.get_or_create_user(deki_user)

  File "/data/www/django/developer.mozilla.org/kuma/apps/dekicompat/backends.py", line 97, in get_or_create_user
    user = profile.user

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/db/models/fields/related.py", line 313, in __get__
    rel_obj = QuerySet(self.field.rel.to).using(db).get(**params)

  File "/data/www/django/developer.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 347, in get
    % self.model._meta.object_name)

DoesNotExist: User matching query does not exist.
This works for me.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
(Assignee)

Updated

6 years ago
Version: MDN → unspecified
(Assignee)

Updated

6 years ago
Component: Website → Landing pages
Product: Mozilla Developer Network → Mozilla Developer Network
You need to log in before you can comment on or make changes to this bug.