-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
cannot unmarshal array into Go value of type RequestError #3
Comments
Digging into the code with a debugger, I realized that the response from the server I was getting was 201, and the check in |
Alright, this is a bit of a blocker, so I'm still trying to fix it... Running
|
Try to run |
I just started with a simple insert example today and I had the same issue.
|
Me too, I encounter the same issue today. |
The response is array of inserted rows, you need to define the result with array. var results []Row
err := supaClient.DB.From("table").Insert(user).Execute(&results) |
go get github.com/nedpals/postgrest-go Fixes it for me |
Based on the sparse readme examples, I've got an insert query that looks like
All other operations I've tried yield similar results. Any ideas on how to avoid this error being returned? The operations seem to be working in Supabase (rows are inserted), but the
err
object is always this message.Also, I have no idea how to go about building queries with this wrapper, are there any resources to point to? I'm glad to write up some docs for this wrapper if I can get some guidance.
Thanks for the work of putting this together!
The text was updated successfully, but these errors were encountered: