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: Deleting causes unmarshal panic #191

Open
2 tasks done
TheDevMinerTV opened this issue Nov 29, 2024 · 1 comment
Open
2 tasks done

Bug: Deleting causes unmarshal panic #191

TheDevMinerTV opened this issue Nov 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TheDevMinerTV
Copy link

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
@TheDevMinerTV TheDevMinerTV added the bug Something isn't working label Nov 29, 2024
@remade
Copy link
Collaborator

remade commented Dec 15, 2024

Thanks for raising this @TheDevMinerTV. The example was of an earlier iteration. Fixed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants