Open MaximilianKromer opened 4 years ago
Error:
sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2006, "MySQL server has gone away (TimeoutError(110, 'Connection timed out'))")
Search result:
leads to looking for 'SQLALCHEMY_POOL_PRE_PING':
Fix:
add
app.config['SQLALCHEMY_ENGINE_OPTIONS']
= {'pool_size' : 100, 'pool_recycle' : 280}`
to app configuration
Configuration for pythonanywhere.com:
restart server restarts session