Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: new StringRecordId("") causes the connection to be dropped. #325

Open
2 tasks done
arun-pirai opened this issue Aug 8, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working pending surrealdb fix This issue depends on an issue in the SurrealDB repository

Comments

@arun-pirai
Copy link

Describe the bug

While creating a record, if it happened to pass new StringRecordId(''), The engine gets disconnected. And we are receiving the error as "The engine reported the connection to surrealdb has dropped"

Steps to reproduce

await db.create('demo', { name: new StringRecordId('')})

Expected behaviour

The connection shouldn't be dropped, instead it should throw an error

SurrealDB version

1.5.4

JavaScript SDK version

1.0.0-beta.18

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
@arun-pirai arun-pirai added the bug Something isn't working label Aug 8, 2024
@knackstedt

This comment was marked as outdated.

@kearfy
Copy link
Member

kearfy commented Nov 20, 2024

Hey @arun-pirai , We need to do some work on SurrealDB's side to be able to solve this, you can track the following issue: surrealdb/surrealdb#4528
I'll leave this open in the meantime!

@kearfy kearfy added the pending surrealdb fix This issue depends on an issue in the SurrealDB repository label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending surrealdb fix This issue depends on an issue in the SurrealDB repository
Projects
None yet
Development

No branches or pull requests

3 participants