Closed CoryParsnipson closed 2 years ago
Actually I just looked at the supabase-unity repo and followed the submodules all the way back to postgrest-csharp, and it looks like I'm using this commit from May 24:
@CoryParsnipson thanks for such a detailed issue! Unfortunately, I'm not able to duplicate the issue you're having from the latest release on this repo. The associated test case is here: https://github.com/supabase-community/postgrest-csharp/blob/a6eb5afa978175a3e39fba3f4c45081cbac4a586/PostgrestTests/ClientApi.cs#L974-L992
I thought maybe you'd found an edge case where adding Select()
to the call would make it error, but that didn't seem to break anything for me?
Are you able to continue just by changing that source file? Or would updating the supabase-cloned
folder in the repo to the latest release (note that you need to include submodules in the command git clone --recursive git://github.com/supabase-community/supabase-csharp.git
) I don't maintain the supabase-unity
repo - it's a bit out of my wheelhouse!
I'm going to try updating the packages individually like you suggested and get back to you. Thanks!
Taking out the Select() call makes no difference for me. If I change the source file to use GET, everything works fine for me. I finished implementing the feature I was doing, so I figured I tried to debug what is happening with my thing "for real", since if someone updates the package, it'll break everything mysteriously sometime in the future.
Also, yes, looks like the supabase-unity repo is a couple months out of date. I think it's mainly just bundling all the other packages together, so I thought it would be better to bring up the issue here. If I figure out how to fix it, I'll contact the maintainers to see if I can get an update in.
Keep me updated - Thanks for your responsiveness!
Ok after some trial and error, I was able to update the postgrest submodule to 2.0.11 (the latest one) and the bug went away.
It's looking like this could be an issue introduced during bundling in the supabase-unity repo. I'll go bother them now...
Thanks!
Very nice! Glad to hear you’re making progress!
Yeah I'm close, I just need to resolve a couple things in the supabase unity package.
Thanks for trying to reproduce on your end.
Hi,
I want to get a count of all the rows in my table with this query:
And I get a ProtocolViolationException. The top of the stack trace looks like this:
If I look in Table.cs at the Count() function (line 455 in my version) I see this:
From the error message, it looks like the Head HTTP request method doesn't allow a body to be sent. So if I change
HttpMethod.Head
toHttpMethod.Get
, everything works fine. Something in here is including a message body when it's not supposed to, I guess?I think you can reproduce this by trying to make a Count() request on any given query. If not, I am using this postgrest-csharp bundled in unity-supabase cloned from the repo three days ago. I'd be happy to provide additional information if necessary.
Thanks!