'getting sqlalche error of invalided transaction How to track it

enter image description here

Not able to try this error Error Won't appear on local machine but when updated on Azure server it shows error

  File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 528, in _invalid_transaction
raise exc.PendingRollbackError(

sqlalchemy.exc.PendingRollbackError: Can't reconnect until invalid transaction is rolled back. (Background on this error at: http://sqlalche.me/e/14/8s2b)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source