Open thelindat opened 9 months ago
Yeah, facing the same issue, have you found any issue ? i'm personally using oxmysql, and when doing an sql request onRessourceStop i'm having the same issue.
[ STDERR] (node:11056) UnhandledPromiseRejectionWarning: Error: BUFFER_SHORTAGE
[ STDERR] at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
[ STDERR] at h (citizen:/scripting/v8/msgpack.js:29:15761)
[ STDERR] at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
[ STDERR] at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
[ STDERR] at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
[ STDERR] at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
[ STDERR] at unpack (citizen:/scripting/v8/main.js:50:33)
[ STDERR] at citizen:/scripting/v8/main.js:82:21
[ STDERR] at Number.__cfx_wrap_19703 (citizen:/scripting/v8/main.js:23:12)
[ STDERR] at citizen:/scripting/v8/main.js:29:16
[ STDERR] (node:11056) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 15)
You can safely ignore the error.
ehhhh du vorte
Any new infos ? I have almost the same right now.
What happened?
Calling an async export when a script is stopping leads to the following error.
Expected result
Either discard the error or give a more sensible message.
Reproduction steps
onResourceStop
.Importancy
Slight inconvenience
Area(s)
ScRT: JS
Specific version(s)
Server 7290
Additional information
Using a try-catch block here will catch the error, but I'm unsure if it's indicative of issue elsewhere.
https://github.com/citizenfx/fivem/blob/master/data/shared/citizen/scripting/v8/main.js#L29