Open
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
- Start a SurrealDB instance
- Copy the example from the README into a new Go project
- Run the code
- 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