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

receiving_address() raises TransactionManagementError #26

Closed
Elijen opened this issue Dec 11, 2013 · 2 comments
Closed

receiving_address() raises TransactionManagementError #26

Elijen opened this issue Dec 11, 2013 · 2 comments

Comments

@Elijen
Copy link

Elijen commented Dec 11, 2013

When I am calling receiving_address method the following way, I am getting TransactionManagementError exception.

address = user.wallet.receiving_address()
print address

Does anybody have idea why is this happening or how can I debug it?

Traceback:

Traceback:
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  114.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/Elijen/Projects/Python/bitstore/bitstore/bitstore/views/invoice.py" in create
  12.         addr = invoice.wallet.receiving_address(fresh_addr=True)
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django_bitcoin/models.py" in receiving_address
  363.             addr = new_bitcoin_address()
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django_bitcoin/models.py" in new_bitcoin_address
  123.                     print "wallet transaction concurrency:", bp.address
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django/db/transaction.py" in __exit__
  393.         self.exiting(exc_type, self.using)
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django/db/transaction.py" in exiting
  436.         leave_transaction_management(using=using)
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django/db/transaction.py" in leave_transaction_management
  78.     get_connection(using).leave_transaction_management()
File "/Users/Elijen/Projects/Python/bitstore/lib/python2.7/site-packages/django/db/backends/__init__.py" in leave_transaction_management
  315.                 "Transaction managed block ended with pending COMMIT/ROLLBACK")
@sylvainblot
Copy link

@Elijen did you find a solution ? thanks.

@amaco
Copy link

amaco commented Apr 19, 2014

@Elijen any solution to this issue ? thank you

@Elijen Elijen closed this as completed May 8, 2018
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

3 participants