-
Notifications
You must be signed in to change notification settings - Fork 174
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
Percentage wildcard in like filter throws postgrest.exceptions.APIError
#830
Comments
postgrest.exceptions.APIError
postgrest.exceptions.APIError
Hello fschay, I noticed a subtle issue in your query pattern syntax. The pattern should not include {} braces around the value. Instead, directly use % symbols around the value to match any string containing 85770204020. Here's the corrected code:
This should resolve the issue. For reference, you can also check the example from the Supabase documentation here. If you have any further questions or issues, feel free to ask! |
Ok thanks my bad. |
Bug report
Describe the bug
I use the like filter as described in the documentation. I get the following error
postgrest.exceptions.APIError: {'message': 'JSON could not be generated', 'code': 500, 'hint': 'Refer to full message for details', 'details': ...
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
The meeting_url contains the meeting url with the meeting_id contained in the string.
Expected behavior
Should return the database entries, not throw an error. It seems for me an encoding error since if I replace the
%
with%25
no error is thrown.Screenshots
If applicable, add screenshots to help explain your problem.
System information
The text was updated successfully, but these errors were encountered: