RE: django.db.utils.InterfaceError: connection already closed

2022-04-26 Thread peter.wagemans via Django users
Michele, > ... the database connection seems to shut down randomly. Could be the same problem as I described in Database "InterfaceError connection already closed" with asgi. https://groups.google.com/g/django-users/c/RmtFuCVLfPE/m/dBQjq7FsBQAJ Django doesn't stick to the same thread (s

Database "InterfaceError connection already closed" with asgi.

2021-12-09 Thread peter.wagemans via Django users
Database "InterfaceError connection already closed" with asgi. This often seems to happen when an exception was triggered, e.g., even a simple Http404 due to incorrect URL. A suspicion is discussed below. Ideas about this suspicion, how to validate it and how to avoid the problem will be apprec