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: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if th... #649

Open
agdsn-sentry bot opened this issue Jul 27, 2023 · 0 comments

Comments

@agdsn-sentry
Copy link

agdsn-sentry bot commented Jul 27, 2023

Sentry Issue: PYCROFT-5M

UniqueViolation: duplicate key value violates unique constraint "interface_mac_key"
DETAIL:  Key (mac)=(b4:b0:24:06:47:1f) already exists.

  File "sqlalchemy/engine/base.py", line 1968, in _exec_single_context
    self.dialect.do_execute(
  File "sqlalchemy/engine/default.py", line 920, in do_execute
    cursor.execute(statement, parameters)

IntegrityError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
(psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "interface_mac_key"
DETAIL:  Key (mac)=(b4:b0:24:06:47:1f) already exists.

[SQL: UPDATE interface SET mac=%(mac)s WHERE interface.id = %(interface_id)s]
[parameters: {'mac': 'b4b02406471f', 'interface_id': 16750}]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
(26 additional frame(s) were not displayed)
...
  File "sqlalchemy/engine/base.py", line 1846, in _execute_context
    return self._exec_single_context(
  File "sqlalchemy/engine/base.py", line 1987, in _exec_single_context
    self._handle_dbapi_exception(
  File "sqlalchemy/engine/base.py", line 2344, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "sqlalchemy/engine/base.py", line 1968, in _exec_single_context
    self.dialect.do_execute(
  File "sqlalchemy/engine/default.py", line 920, in do_execute
    cursor.execute(statement, parameters)

Unexpected error when handling web response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants