We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
count: exact
head: true
If a table has a high count (say 30_000_000), doing:
supabase .from('table') .select('id', {count: 'exact', head: true})
Will result in an uninformative error:
{ error: { message: '' }, data: null, count: null, status: 500, statusText: 'Internal Server Error' }
By removing the head: true (untested, but assuming is the same as curl), we get the actual error:
curl
{"code":"57014","details":null,"hint":null,"message":"canceling statement due to statement timeout"}
Somehow expose the error message when this happens. Not sure if possible, this might need a special status code from upstream.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
If a table has a high count (say 30_000_000), doing:
Will result in an uninformative error:
By removing the
head: true
(untested, but assuming is the same ascurl
), we get the actual error:Solution
Somehow expose the error message when this happens. Not sure if possible, this might need a special status code from upstream.
The text was updated successfully, but these errors were encountered: