so im working with typescript and react with appwrite to create a social media app but i keep encounteing these two errors when creating the auth part for creating new users and adding them to the users collection When i reload the page before filling the form : AppwriteException: User (role: guests) missing scope (account) when i fill the sign up form and click on sign-up : AppwriteException: Server Error
Would appreciate any help as this is my end of studies project
If you call account.get() without a session, you'll get that error. It's expected.
The server error is probably due to something you're passing. What's your project id?
Copy and paste here please
my bad , the project id is 65a003e0932f8903a34f
please note that despite these two errors , when i check the user collection in the console , i find the user is indeed added there
The server error is because you're missing read access to some related document
i didnt understand , can i fix this from the console or my code ? because i know i gave all the permissions to the users collection
And to everything related too?
i just added full permissions to the comments collection related to the users collection and it seems to have fixed the issue
how can i fix the missing scope error tho ? as it is expected and im still working through the signup only , shall i ignore it ?
Recommended threads
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...