Skip to content

Bug: Deleting causes unmarshal panic #191

Open
@TheDevMinerTV

Description

Describe the bug

Running the example from the README fails with panic: cbor: cannot unmarshal map into Go struct field connection.RPCResponse[github.com/surrealdb/surrealdb.go/pkg/models.RecordID].result of type []interface {} on SurrealDB 2.1.2.

Steps to reproduce

  1. Start a SurrealDB instance
  2. Copy the example from the README into a new Go project
  3. Run the code
  4. It crashes with panic: cbor: cannot unmarshal map into Go struct field connection.RPCResponse[github.com/surrealdb/surrealdb.go/pkg/models.RecordID].result of type []interface {}

Expected behaviour

It shouldn't crash

SurrealDB version

2.1.2 for linux on x86_64

Contact Details

No response

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions