Skip to content

Bug: EngineDisconnet if I access the database too fast... #293

@irishburlybear

Description

@irishburlybear

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

[email protected]

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    noissuequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions