we have this super weird issue happening with postgres that only happens on random requests. We get an InterfaceError: connection already closed which seems to be being thrown by the TransactionMiddleware. This was causing random 500 pages for the end-user.
Removing TransactionMiddleware seems to solve all our issues however I am quite scared about what this might actually do. If you remove TransactionMiddleware will it in anyway endanger data integrity via dirty reads/writes or cause any other issues?
I have googled high and low to try and figure out why TransactionMiddleware is throwing this error but nothing seems too relevant.
Thanks,
Mike