SQLAlchemy generates this error for a good reason, however it is less typical when using the ORM Session. Would need at least a stack trace to have any idea what is happening for you.
On Wed, Mar 7, 2018 at 7:31 AM, Erol Merdanović <[email protected]> wrote: > Hello > > I'm using latest sqlalchemy (this was also occurring with 1.1.x branch) with > flask and flask-sqlalchemy. For some reason I'm randomly getting this error. > > 1. Checking the group there were similar problems but some mentioned that > problem is with database going away > 2. Others mentioned that session is not correctly started/closed. As > mentioned, I'm using flask-sqlalchemy. > > Is anyone else experiencing same problem? Any tips how to approach this? Is > this flask-sqlalchemy problem? > > -- > SQLAlchemy - > The Python SQL Toolkit and Object Relational Mapper > > http://www.sqlalchemy.org/ > > To post example code, please provide an MCVE: Minimal, Complete, and > Verifiable Example. See http://stackoverflow.com/help/mcve for a full > description. > --- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
