-
Notifications
You must be signed in to change notification settings - Fork 538
Open
Labels
bugSomething isn't workingSomething isn't workingstorage-jsRelated to the storage-js library.Related to the storage-js library.
Description
Bug report
Describe the bug
'info' function seems to always return object not found.
{
"statusCode": "404",
"error": "not_found",
"message": "Object not found"
}To Reproduce
- Create a public bucket
- Upload object to bucket
- Use info using service key:
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);- See output
Exists function:
{ "data": true, "error": null }Info function:
{
"data": null,
"error": "StorageApiError: Object not found"
}Expected behavior
Info should return object's info correctly.
orlein, CesGalaxy and dkodeit
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstorage-jsRelated to the storage-js library.Related to the storage-js library.