Skip to content

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

@arun-pirai

Description

@arun-pirai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending surrealdb fixThis issue depends on an issue in the SurrealDB repository

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions