Skip to content
Back

Having permission issues with imported schema

  • 0
  • Self Hosted
  • Web
djcali
9 Sep, 2025, 21:42

Hello,

I have my self hosted project on a server, and i wanted to import the schema to my local machine dev instance so I used the json file from the server and on my local machine used appwrite push collection to get the schema in my dev project. This worked perfectly, but i keep getting 401 unauthorized when trying to getDocument from a collection. Of course i set the permissions correctly on the collection.

Just as a test, i created a new collection and some documents, tried to get documents and works just fine. So this specifically has something to do with the imported schema.

Thanks

TL;DR
Issue: Permissions error (401 unauthorized) when trying to getDocuments from a collection that was imported using a JSON file. Solution: The problem seems to be related to the imported schema. It's recommended to double-check the permissions set on the collection after using ``appwrite push collection`` to ensure they are correctly configured. If creating a new collection works fine, the issue likely lies with the imported schema.
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