Storage bucket list returning empty array #996
-
Hey all. I was messing around with the new Storage feature in the node REPL with the latest client library (1.7.6), but I seem to be having some issues listing objects in a bucket. I created the bucket and uploaded the picture using the dashboard. I'm able to download the object, but I'm unable to get a list of objects in the bucket. Trying to list all objects in the
Downloading a single object from the
Any ideas? Is this a bug or am I doing something wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@rickjerrity I ran into the same issue. Try passing the // without a path, pass `null` to list
client.storage.from('profile_pic').list(null, {limit: 10}).then(console.log)
// or you can pass the path prefix
client.storage.from('profile_pic').list('foo/bar', {limit: 10}).then(console.log) That fixed it for me. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
@rickjerrity I ran into the same issue. Try passing the
limit:
option tolist()
.That fixed it for me.