djcaliOriginal post
Rank 3: Container
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
Summary
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.