ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข13mo agoโ€ข
9 replies
Nikhil

Storage.List not returning documented fields

Hey all, I'm using
supabase-js
supabase-js
and the
storage.from.list
storage.from.list
API doesn't seem to be returning all required fields.

According to the docs the response is missing required fields like
bucket_id
bucket_id
,
buckets
buckets
,
owner
owner
, etc.

I'm using a service_key so expect all RLS checks to be off.

Any ideas on what might be off / if I'm doing something wrong?

My code
const supabase = createClient(URL, SERVICE_KEY);

const { data, error } = await supabase.storage
    .from("raw_gmail_data")
    .list("cm4rm05e20000fnfe7uyxv8w5", { limit: 10 });

  if (error) {
    throw error;
  }

console.log(JSON.stringify(data, null, 2));
const supabase = createClient(URL, SERVICE_KEY);

const { data, error } = await supabase.storage
    .from("raw_gmail_data")
    .list("cm4rm05e20000fnfe7uyxv8w5", { limit: 10 });

  if (error) {
    throw error;
  }

console.log(JSON.stringify(data, null, 2));


Returns
[
  {
    "name": "00004b867db32841b49a21cfbf6aa222411b38279115ed828dc091e8e1ba14ac",
    "id": "aa8c1a2d-7b05-4ca1-89b5-fe089f9f7a1d",
    "updated_at": "2025-01-21T06:32:43.824Z",
    "created_at": "2025-01-21T06:32:43.824Z",
    "last_accessed_at": "2025-01-21T06:32:43.824Z",
    "metadata": {
      "eTag": "\"e2e4b96020da97e29c70aa48a1388126\"",
      "size": 18353,
      "mimetype": "text/plain;charset=UTF-8",
      "cacheControl": "max-age=3600",
      "lastModified": "2025-01-21T06:32:44.000Z",
      "contentLength": 18353,
      "httpStatusCode": 200
    }
  },
  ...
]
[
  {
    "name": "00004b867db32841b49a21cfbf6aa222411b38279115ed828dc091e8e1ba14ac",
    "id": "aa8c1a2d-7b05-4ca1-89b5-fe089f9f7a1d",
    "updated_at": "2025-01-21T06:32:43.824Z",
    "created_at": "2025-01-21T06:32:43.824Z",
    "last_accessed_at": "2025-01-21T06:32:43.824Z",
    "metadata": {
      "eTag": "\"e2e4b96020da97e29c70aa48a1388126\"",
      "size": 18353,
      "mimetype": "text/plain;charset=UTF-8",
      "cacheControl": "max-age=3600",
      "lastModified": "2025-01-21T06:32:44.000Z",
      "contentLength": 18353,
      "httpStatusCode": 200
    }
  },
  ...
]
JavaScript: List all files in a bucket | Supabase Docs
Supabase API reference for JavaScript: List all files in a bucket
JavaScript: List all files in a bucket | Supabase Docs
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Supabase storage list not working
SupabaseSSupabase / help-and-questions
8mo ago
Supabase Storage In Local Development Not Returning Images
SupabaseSSupabase / help-and-questions
4y ago
storage.from.list(); returns empty
SupabaseSSupabase / help-and-questions
4y ago
fields not updating
SupabaseSSupabase / help-and-questions
4y ago