Duplicate entry for key 'actioncounters_actioncounterunique_unique'

RESOLVED WONTFIX

Status

developer.mozilla.org
Demo Studio / Dev Derby
RESOLVED WONTFIX
6 years ago
3 years ago

People

(Reporter: groovecoder, Unassigned)

Tracking

Details

(Whiteboard: [type:bug])

(Reporter)

Description

6 years ago
Been getting more of these lately and more often. I don't see any of our old bugs for them.

Traceback (most recent call last):

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/developer.mozilla.org/kuma/apps/demos/views.py", line 222, in launch
    submission.launches.increment(request)

  File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/fields.py", line 93, in increment
    counter = self._get_counter_for_request(request)

  File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/fields.py", line 85, in _get_counter_for_request
    self.instance, self.name, request, do_create)

  File "/data/www/developer.mozilla.org/kuma/apps/actioncounters/models.py", line 52, in get_unique_for_request
    total=0))

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/manager.py", line 135, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)

  File "/data/www/developer.mozilla.org/kuma/vendor/src/django/django/db/models/query.py", line 391, in get_or_create
    raise e

IntegrityError: (1062, "Duplicate entry 'afc8fd54fdded7915b3ba9c43fc6dde8' for key 'actioncounters_actioncounterunique_unique'")

Comment 1

6 years ago
Should put this in an upcoming sprint
Whiteboard: bug
Priority: P1 → --
Whiteboard: bug → [type:bug]

Comment 2

3 years ago
Demo Studio is being removed from MDN and archived as of end January 2016
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.