Closed netcamo closed 4 weeks ago
Hey @netcamo, the status
and statusText
comes from the whole response object, which you can get like so:
const { data, error, status, statusText } = await supabase
// ...
They don't come from data
or error
. We'll update the docs to make this clearer 👍
Bug report
Describe the bug
Hi! I am using supabase js library. I was using delete function but it doesn't return any response while docs shows there should be a response (successful/unsuccessful). The delete itself works but the problem is I have no way of knowing if any errors happened or it has proceeded successfully.
Reference: https://supabase.com/docs/reference/javascript/delete
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Both error and data are null in all cases (successful/unsuccessfull)
Expected behavior
I would expect it to give a proper response, at least same as the example in docs:
System information
"@supabase/ssr": "^0.3.0", "@supabase/supabase-js": "^2.43.1",