Rank 1: Thread
[I have given the code snippets of my appwrite.js file . Is there any way to solve it?
Votes
0
Replies
14
Participants
Unknown
Messages
15
Rank 1: Thread
[I have given the code snippets of my appwrite.js file . Is there any way to solve it?
Heyyy. Notice line where you set newAccount variable. There, you pass userId, but as last oarameter. it needs to be first one
in order userId, email, password and name
Rank 1: Thread
I did this in order earlier but still no luck
Rank 1: Thread
also data is not saved to user collection
Hmm I see. Can you print the userId so we see what is the value?
Rank 1: Thread
console.log it?
Thats caused by exception. If one action fails, the function code stops. Like "return", but it is an exception
exactly
Rank 1: Thread
ok this is what I got it seems legit to me
Rank 1: Thread
also this one
Looks valid to me. Can you try to manually create user with this ID in Appwrite Console under Auth page?
Rank 1: Thread
ok I can see my previously created users in auth page (Which I've found out right now🥲 ) but i cannot see it on my user collection with database. Is it normal or there's an issue with it?
Because of this
Rank 1: Thread
ERROR [Error: AppwriteException: Creation of a session is prohibited when a session is active.] why this is happening