julian.urablOriginal post
Rank 1: Thread
Hey folks,
I get storage_bucket_not_found when trying to get a file with storage.getFile(). I can confirm that a bucket with the requested ID exists as I'm able to get the file with createAdminClient(). It does not work with createSessionClient(cookies) though. I set the permissions for this bucket to enable CRUD for 'Any'. I have this confirmed by printing the permissions:
Bucket permissions: [ 'create("any")', 'read("any")', 'update("any")', 'delete("any")' ]
I can also confirm the user I'm trying this with has an active session.
Any leads?
Summary
Developers are encountering a storage bucket not found error when trying to get a file using createSessionClient(cookies), even though the bucket exists and has the correct permissions. The issue may be related to the session client setup or authentication. Double-check that the session is properly established and that the user's credentials are correctly passed.