-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Describe the bug
I get this error if there are too many queries happening I guess. (svelte) I have a hooks accessing the info for the user.
EngineDisconnected: The engine reported the connection to SurrealDB has dropped
at file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:116:50
at Array.map ()
at Surreal.clean (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:116:17)
at Surreal.close (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:108:14)
at Surreal.connect (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:73:20)
at Object.handle (/home/gray/programs/timeclock/src/hooks.server.js:57:11)
at Module.respond (/home/gray/programs/timeclock/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:40)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/gray/programs/timeclock/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:524:22
Steps to reproduce
In sveltekit, have hooks.server.js get the current user info, then do a db query immediately after.
Expected behaviour
Not to be disconnected from the engine...
SurrealDB version
1.5.3
SurrealDB.js version
beta.9
Contact Details
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct