Skip to content

RuntimeError: A durable atomic block cannot be nested within another atomic block. #178

@simevo

Description

@simevo

Describe the bug

with postgres DB and psycopg 3 driver, occurs randomly when creating entity or vendor etc.:

Request Method:	POST
Request URL:	http://localhost:8000/ledger/customer/simevo-pqr0mwbu/create/
Django Version:	4.2.8
Exception Type:	RuntimeError
Exception Value:	
A durable atomic block cannot be nested within another atomic block.
Exception Location:	/usr/local/lib/python3.11/site-packages/django/db/transaction.py, line 190, in __enter__
Raised during:	django_ledger.views.customer.CustomerModelCreateView
Python Executable:	/usr/local/bin/python3
Python Version:	3.11.6
Python Path:	
['/app',
 '/usr/local/lib/python311.zip',
 '/usr/local/lib/python3.11',
 '/usr/local/lib/python3.11/lib-dynload',
 '/usr/local/lib/python3.11/site-packages']
Server time:	Tue, 05 Dec 2023 13:23:52 +0000

To Reproduce

Expected behavior
it should create the entity

Screenshots
localhost_8000_ledger_customer_simevo-pqr0mwbu_create_

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions