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 "counter_billinginfo_customer_id_key" #603

Open
ae-utbm-sentry bot opened this issue Apr 4, 2023 · 1 comment

Comments

@ae-utbm-sentry
Copy link

ae-utbm-sentry bot commented Apr 4, 2023

Sentry Issue: SITH3-36

UniqueViolation: duplicate key value violates unique constraint "counter_billinginfo_customer_id_key"
DETAIL:  Key (customer_id)=(25285) 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 "counter_billinginfo_customer_id_key"
DETAIL:  Key (customer_id)=(25285) already exists.

(14 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 79, in _execute
    with self.db.wrap_database_errors:
  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)
@Juknum Juknum self-assigned this Apr 4, 2023
@Juknum
Copy link
Member

Juknum commented Apr 5, 2023

Après investigation :

Donc c'est très probablement survenu lors de la première saisie de l'utilisateur qui a du appuyer deux fois à la suite sur le bouton sauvegarder

@Juknum Juknum removed their assignment Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant