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
I have no idea honestly, but maybe try doing an sqlite3 query.
JavaScript/TypeScript code that reproduces the crash?
constsqlite3=require("sqlite3");letdb=newsqlite3.Database("./tokens.db",(err)=>{if(err){console.error(err.message);}console.log("Connected to the tokens database.");});functionstuff(token){db.get(`SELECT token tkn, ip ipaddr FROM tokens WHERE token = ?`,[token],(err,row)=>{if(err){console.log(err);return{code: 500,res: err.message};}if(ipaddr!=ip){return{code: 409,res: "Token Invalidated."};}return{code: 200,res: "Authenticated."};});}console.log(stuff("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjAxN2VjMjNiOTc4NmRiYjY2Y2U2ODQiLCJpYXQiOjE3MTU5NTI5MTV9.hy-WobLwtjkzVfTSV_wR48qCK8nggKAqqGwtFdnhHy4"));
Relevant log output
just instantly crashes yay
Stack Trace (bun.report)
Bun v1.1.8 (89d2580) on linux x86_64 [AutoCommand]
How can we reproduce the crash?
I have no idea honestly, but maybe try doing an sqlite3 query.
JavaScript/TypeScript code that reproduces the crash?
Relevant log output
Stack Trace (bun.report)
Bun v1.1.8 (
89d2580
) on linux x86_64 [AutoCommand]panic: napi: napi_define_properties
Error::Error
fd.zig:193
:posix_event_loop.Closer.onClose
napi.zig:0
:src.napi.napi.ThreadSafeFunction.finalize
napi.zig:1229
:napi_create_buffer
napi.zig:1220
:napi_create_buffer
??
??
??
??
event_loop.zig:1079
:src.bun.js.event_loop.EventLoop.tickQueueWithCount__anon_361749
fifo.zig:242
:src.bun.js.event_loop.EventLoop.tick
The text was updated successfully, but these errors were encountered: