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

PGRST102: Error in $: not enough input when inserting data using supabase-py #305

Closed
goodmarvin opened this issue May 11, 2023 · 8 comments

Comments

@goodmarvin
Copy link

goodmarvin commented May 11, 2023

Trying to update a row using the supabase.table().update().eq().execute() pattern. Using postman to test my API it keeps returning the error "PGRST102: Error in $: not enough input"

Googling this error, I came across a similar issue that popped up with the JS version of supabase. (There error that time was it seems that this happened because an exception during the JWT decoding caused cloudflare workers to resend the request without a body(hence the error message)"

@Tyfee
Copy link

Tyfee commented May 22, 2023

Did you ever figure out a way to fix this? Been stuck in the same problem this week.

@goodmarvin
Copy link
Author

Nope, no luck on my end.

@J0
Copy link
Contributor

J0 commented Sep 15, 2023

Hey @goodmarvin @Tyfee ,

Thanks for filing a bug report - can I check if you're still facing the issue?

Let us know! Also going to transfer this to postgrest-py for tracking

@J0 J0 transferred this issue from supabase-community/supabase-py Sep 15, 2023
@goodmarvin
Copy link
Author

@J0 Had to move to a different database provider because I couldn't get this to work. Love Supabase for my node projects, but I've really had a tough time getting things to work as I'd like them in python.

@anand2312
Copy link
Contributor

anand2312 commented Oct 1, 2023

Anyone still facing this issue - can you enable debug logging and send the logs for the requests that httpx sends? I'm not able to reproduce this right now so it'd help give me some leads about what's causing this bug

@anand2312
Copy link
Contributor

Also please make sure you're on the latest version of this package, AND that you haven't accidentally installed the wrong package. The latest version is installed with pip install supabase, installing supabase-py gives you an outdated version

@anand2312
Copy link
Contributor

I'll be closing this now as I've not been able to reproduce this error with the latest version of this package - previous instances of people encountering this bug was due to the wrong package (supabase-py instead of supabase) being installed. If this issue still exists on the latest version, feel free to reopen.

@Yumat10
Copy link

Yumat10 commented Oct 3, 2023

I had a similar issue. I had, in fact, installed supabase-py instead of supabase. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants