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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...