Open AliNagy opened 2 months ago
'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.
Same issue. I used list instead as a workaround.
I got a temporary solution. If you are using a public bucket, just use `public/'.
supabaseClient.storage.from('public/<bucket_name>').info(path),
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.