You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I got this exception when I have a long connection that exceeds both wait_timeout and interactive_timeout timeouts:
File"/usr/lib/python3/dist-packages/peewee.py", line5513, ingetreturnsq.get()
File"/usr/lib/python3/dist-packages/peewee.py", line5911, ingetreturnclone.execute(database)[0]
File"/usr/lib/python3/dist-packages/peewee.py", line1587, ininnerreturnmethod(self, database, *args, **kwargs)
File"/usr/lib/python3/dist-packages/peewee.py", line1658, inexecutereturnself._execute(database)
File"/usr/lib/python3/dist-packages/peewee.py", line1809, in_executecursor=database.execute(self)
File"/usr/lib/python3/dist-packages/peewee.py", line2666, inexecutereturnself.execute_sql(sql, params, commit=commit)
File"/usr/lib/python3/dist-packages/peewee.py", line2660, inexecute_sqlself.commit()
File"/usr/lib/python3/dist-packages/peewee.py", line2451, in__exit__reraise(new_type, new_type(*exc_args), traceback)
File"/usr/lib/python3/dist-packages/peewee.py", line178, inreraiseraisevalue.with_traceback(tb)
File"/usr/lib/python3/dist-packages/peewee.py", line2653, inexecute_sqlcursor.execute(sql, paramsor ())
File"/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line209, inexecuteres=self._query(query)
File"/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line315, in_querydb.query(q)
File"/usr/lib/python3/dist-packages/MySQLdb/connections.py", line226, inquery_mysql.connection.query(self, query)
peewee.OperationalError: (4031, 'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.')
I spotted the shortcuts module inside the peewee code handles these errors: 2006,2013, 2014. I think this can be added to the ReconnectMixin class as well.
Do you want me to add this into the ReconnectMixin class?
The text was updated successfully, but these errors were encountered:
Hi there,
I got this exception when I have a long connection that exceeds both
wait_timeout
andinteractive_timeout
timeouts:I spotted the shortcuts module inside the peewee code handles these errors: 2006,2013, 2014. I think this can be added to the
ReconnectMixin
class as well.Do you want me to add this into the
ReconnectMixin
class?The text was updated successfully, but these errors were encountered: