asakura
psycopg2.OperationalError: SSL SYSCALL error: EOF detected
hi @たけ , I had that issue under circumstances very similar to yours and this seems to have fixed it:
* adding 'NullPool' to the engine: engine = create_engine(DATABASE_URL, echo=True, future=True, pool_pre_ping=True, poolclass=NullPool)
* using a sessionmaker to do all db-related operations inside context managers with session objects instantiated from sessionmaker
hope this helps
14 replies