Skip to content
Back

Storage bucket not found with session client

  • 0
  • Storage
julian.urabl
23 Jun, 2025, 14:44

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:

TypeScript
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?

TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more