Error running system event handling function for resource esplugin_mysql: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/scheduler.lua:655: No such export mysql_fetch_all in resource mysql-async
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:655: in metamethod ‘__index’ @mysql-async/lib/MySQL.lua:143: in field ‘fetchAll’
server.lua:15: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Got this when connecting with an account to my localhost server
Getting this error after updating to the newest artifacts.
(node:12268) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:12268) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:12268) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
(node:12268) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
(node:12268) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
(node:12268) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
I attempted the change but then the script would not load properly. Anyone else experience this issue? Is this actually something that will affect the server?
Here are the lines in mysql a-sync that this is refering to.
sorry it took so long. This is what I got in mysql-async.js
It works and gets rid of most of the warnings but from my research clearTimeout should be set up like this
“clearTimeout = sequence” but it doesnt work that way. It works the way I have in the code below. I included entire code that I have working. I am unable to get the “DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead” to clear as any time I attempt to fix that part it breaks the code and give the error below.
"Uncaught ReferenceError: timeout is not defined @mysql-async/mysql-async.js(5970,3): Protocol._parsePacket @mysql-async/mysql-async.js(6238,12): write @mysql-async/mysql-async.js(5741,16): Protocol.write @mysql-async/mysql-async.js(693,28):
events.js(210,5): emit
_stream_readable.js(308,12): addChunk
_stream_readable.js(289,11): readableAddChunk
_stream_readable.js(223,10): Readable.push
internal/stream_base_commons.js(182,23): onStreamRead
ReferenceError: timeout is not defined
[ERROR] read ECONNRESET"
I was able to change timers.active successfully on all but 2 lines to timeout.refresh. The code should work but will still show 2 lines of
“(node:11864) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.”