Posts

Showing posts with the label flask-sqlalchemy

Flask-SQLAlchemy TimeoutError

Image
Clash Royale CLAN TAG #URR8PPP Flask-SQLAlchemy TimeoutError My backend configuration is : I've got this error message: TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 Do I need to close explicitly the db.session? Shouldn't be the connection back to pool when session goes out of scope? 4 Answers 4 This could happen if you are using debug=True in your application and you have loaded several pages or API endpoints which errored out. debug=True The reason is that running the debug version of the app keeps a live debugger open in the error page. This live debugger keeps around all the resources from processing the request, so that you can examine them. This means that the database connection can't be recycled. You shouldn't use debug mode for the production version of your app (apart from problems like this it is a security risk), and the ...