You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Supabase Studio>Storage>public_bucket>file.jpg>Download
Via supabase.js await supabase.storage.from("public_bucket") .download("file.jpg");
Via supabase-cli supabase --experimental storage cp -r "ss:///public_bucket" .
Error is : Error status 400: {"statusCode":"404","error":"Bucket not found","message":"Bucket not found"}
The bug doesn't appear on non public bucket.
System information
Environment WSL/Ubuntu
Version of node: v18.16.1
Version of supabase-js: 2.39.8
Version of supabase-cli: 1.162.4
Additional context
Tried on my local and Supabase cloud environments with the same behavior.
Tried with this fully permissive RLS :
create policy "anon_and_users_can_edit_all_storage_objects"
on "storage"."objects"
for all
to authenticated, anon
using (true);
create policy "anon_and_users_can_edit_all_storage_buckets"
on "storage"."buckets"
for all
to authenticated, anon
using (true);
The text was updated successfully, but these errors were encountered:
Describe the bug
Downloading an object from a public bucket (column public=true, flag "Public" appears on Supabase Studio) works using the public URL (like https://xxx.supabase.co/storage/v1/object/public/public_bucket/file.jpg, but fails with the following methods :
await supabase.storage.from("public_bucket") .download("file.jpg");
supabase --experimental storage cp -r "ss:///public_bucket" .
Error is : Error status 400: {"statusCode":"404","error":"Bucket not found","message":"Bucket not found"}
The bug doesn't appear on non public bucket.
System information
Additional context
Tried on my local and Supabase cloud environments with the same behavior.
Tried with this fully permissive RLS :
The text was updated successfully, but these errors were encountered: