-
Notifications
You must be signed in to change notification settings - Fork 177
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
Postgrest errors do not get caught, returns false positives #34
Comments
Hey @rphly, Thanks for reporting the bug! Just writing to let you know that I've seen the issue -- will look into it :) |
Hey @J0, have you been able to work on this at all? |
Hi! This has been solved in the new version of postgrest-py! Now an APIError gets raised in this case. Thanks for the report! Closing this issue now, but feel free to reopen it or comment here again if you have any other concerns 🙂 |
Bug report
Describe the bug
Example error that gets returned in 'data' instead of in 'error' in response from an
.insert
operationTo Reproduce
You can easily reproduce this with most errors like not-null constraints, missing columns.
In this case, all I did was try to insert a row with a null value in a not-null column
Expected behavior
error
is not NoneThe text was updated successfully, but these errors were encountered: