Bug report
Describe the bug
Bad request error while fetching all the files within a bucket.
To Reproduce
After fetching the buckets successfully, the list method returns a bad request.
let client = SupabaseClient(supabaseUrl: "{ base url }", supabaseKey: "{ key }")
client.storage.listBuckets { result in
switch result {
case .success(let buckets):
guard let bucket = buckets.first else { return }
let file = client.storage.from(id: bucket.id)
file.list { fileResult in
switch fileResult {
case .success(let objects):
print(objects)
case .failure(let error):
print(error)
}
}
case .failure(let error):
print(error)
}
}
Expected behaviour
After forking the package and printing the data, I found that the body is missing the prefix parameter -
body should have required property 'prefix'
Adding the prefix parameter worked, and it returned the files. However, there's no mention of the prefix in the JS docs.
bug