Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntegrityError: duplicate key value violates unique constraint "studying_study_order_id_key" #543

Open
sentry-io bot opened this issue Oct 14, 2021 · 0 comments
Assignees
Labels
bug Something isn't working Technical debt

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 14, 2021

Sentry Issue: EDUCATION-BACKEND-42

Study.DoesNotExist: Study matching query does not exist.
  File "django/db/models/query.py", line 581, in get_or_create
    return self.get(**kwargs), False
  File "django/db/models/query.py", line 435, in get
    raise self.model.DoesNotExist(

UniqueViolation: duplicate key value violates unique constraint "studying_study_order_id_key"
DETAIL:  Key (order_id)=(2967) already exists.

  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)

IntegrityError: duplicate key value violates unique constraint "studying_study_order_id_key"
DETAIL:  Key (order_id)=(2967) already exists.

(35 additional frame(s) were not displayed)
...
  File "django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
@sentry-io sentry-io bot assigned f213 Oct 14, 2021
@f213 f213 added the bug Something isn't working label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Technical debt
Projects
None yet
Development

No branches or pull requests

1 participant