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
Uncaught Error: C:/Users/Ben/justauserbot/mysql/client.lua:98: attempt to index local 'task' (a nil value) stack traceback: C:/Users/Ben/justauserbot/mysql/client.lua:98: in function 'f' C:/Users/Ben/justauserbot/mysql/client.lua:124: in function 'handler' [string "bundle:deps/core.lua"]:248: in function 'emit' [string "bundle:deps/stream/stream_readable.lua"]:992: in function <[str ing "bundle:deps/stream/stream_readable.lua"]:985> [string "bundle:deps/timer.lua"]:123: in function <[string "bundle:deps/ timer.lua"]:119> [C]: in function 'run' [string "bundle:init.lua"]:52: in function <[string "bundle:init.lua"]:4 7> [C]: in function 'xpcall' [string "bundle:init.lua"]:47: in function 'fn' [string "bundle:deps/require.lua"]:310: in function <[string "bundle:dep s/require.lua"]:266>
I appear to be getting this error randomly without even querying anything, have you seen something simular before?
The text was updated successfully, but these errors were encountered:
its because mysql server close connection with ECONNRESET after a timeout (show variables like 'wait_timeout';)
to solve this, you need to keep the connection alive:
send an empty request using client:ping() every 60 seconds
reconnect to database in ECONNRESET hander & socket:on("close
Uncaught Error: C:/Users/Ben/justauserbot/mysql/client.lua:98: attempt to index local 'task' (a nil value) stack traceback: C:/Users/Ben/justauserbot/mysql/client.lua:98: in function 'f' C:/Users/Ben/justauserbot/mysql/client.lua:124: in function 'handler' [string "bundle:deps/core.lua"]:248: in function 'emit' [string "bundle:deps/stream/stream_readable.lua"]:992: in function <[str ing "bundle:deps/stream/stream_readable.lua"]:985> [string "bundle:deps/timer.lua"]:123: in function <[string "bundle:deps/ timer.lua"]:119> [C]: in function 'run' [string "bundle:init.lua"]:52: in function <[string "bundle:init.lua"]:4 7> [C]: in function 'xpcall' [string "bundle:init.lua"]:47: in function 'fn' [string "bundle:deps/require.lua"]:310: in function <[string "bundle:dep s/require.lua"]:266>
I appear to be getting this error randomly without even querying anything, have you seen something simular before?
The text was updated successfully, but these errors were encountered: