-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Insert into non-existing table raises empty APIErrror #3697
Comments
Could you please reproduce this with a plain |
This is not a valid PostgREST version. Which version are you really using? |
After trying to reproduce the issue with curl, I concluded that the error must be in the client code, not in PostgREST. Sorry for the false positive. |
Actually I have to reopen this issue, it persists if I use POST on non-existing table. PostgREST version: 12.x (not sure, using hosted supabase, but they've announced PostgREST 12 support) |
Confirmed against our spec fixtures:
|
Insert into non-existing table raises empty APIErrror
Description
Found this bug while using Supabase client, where I originally opened this issue.
If
client.table("table_name")
does not exist (e.g. typo),insert
andupsert
operations raise empty APIError.To Reproduce
Expected behavior
The error should contain information about the table not present in the scheme.
Screenshots
System information
The text was updated successfully, but these errors were encountered: