-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug: EngineDisconnet if I access the database too fast... #293
Comments
Hey @irishburlybear, this error is sent to all pending requests if you close the connection before they can be completed. Are you sure that you |
hooks.server.js: Notice I am using ws because http didn't work / doesn't work..
|
It will run once, but if I refresh to generate another pdf, I get the above error...
|
BTW, I'm using a query because I couldn't use select. But maybe because RecordID, I'm doing it wrong? Update! I rewrote select to use the RecordID. Still has the same issue. |
Here is the function printRegualLabel():
|
I also tried adding |
Here is the new output after switching to http protocol: Getting PDF is the filename I create in the tmp/os folder for it to be downloaded Getting pdf... 716625ec-c30e-44bc-9d96-acd3e3a49abc |
Have the same issue. After a few time the connection has dropped. |
Thanks, it's on my list. I'll be looking into this soon! |
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
irishburlybear@gmail.com
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: