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 "website_project_slug_key" #3009

Open
sentry-io bot opened this issue Nov 29, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Nov 29, 2024

Sentry Issue: BLT-DJANGO-QM

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

UniqueViolation: duplicate key value violates unique constraint "website_project_slug_key"
DETAIL:  Key (slug)=(owasp-masvs) already exists.

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

IntegrityError: duplicate key value violates unique constraint "website_project_slug_key"
DETAIL:  Key (slug)=(owasp-masvs) already exists.

(15 additional frame(s) were not displayed)
...
  File "website/views/project.py", line 273, in post
    project, created = Project.objects.get_or_create(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

0 participants