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
'info' function seems to always return object not found.
{ "statusCode": "404", "error": "not_found", "message": "Object not found" }
import { createClient } from "jsr:@supabase/supabase-js"; const supabaseUrl = "https://myurl.supabase.co"; const supabaseKey = "myservicekey"; const supabase = createClient(supabaseUrl, supabaseKey); const exists = await supabase.storage.from("test").exists("test.png"); console.log(exists); const info = await supabase.storage.from("test").info("test.png"); console.log(info);
Exists function:
{ "data": true, "error": null }
Info function:
{ "data": null, "error": "StorageApiError: Object not found" }
Info should return object's info correctly.
The text was updated successfully, but these errors were encountered:
Same issue. I used list instead as a workaround.
Sorry, something went wrong.
I got a temporary solution. If you are using a public bucket, just use `public/'.
supabaseClient.storage.from('public/<bucket_name>').info(path),
Adding to the temp solution.... For a non-public bucket you have to use.... .from('authenticated/<bucket_name>').info(path)
.from('authenticated/<bucket_name>').info(path)
No branches or pull requests
Bug report
Describe the bug
'info' function seems to always return object not found.
To Reproduce
Exists function:
Info function:
Expected behavior
Info should return object's info correctly.
The text was updated successfully, but these errors were encountered: