Back

[SOLVED] Not able to register a user

  • 0
  • Web
rudra_2001
20 Dec, 2023, 04:57

I am following the react web tutorial given in the appwrite docs. https://appwrite.io/docs/tutorials/react/step-1 For some reason I am able to login a user if I manually create one through the console. But if do it through the client it throws some erros from one of the account modules.

TL;DR
User is experiencing an issue with registering a user. Another user had the same issue but resolved it. The solution was to import the ID from the appwrite module. There was also a mention of a tutorial being incorrect and the correct parameters for the `account.create()` method.
ideclon
20 Dec, 2023, 07:01

That tutorial is incorrect. account.create() has three required parameters - userId (which you can set to unique() to have Appwrite generate one automatically), email and password.

rudra_2001
20 Dec, 2023, 08:32

The code is given in the third picture

rudra_2001
20 Dec, 2023, 08:37

it says unique isnt defined ?

rudra_2001
20 Dec, 2023, 08:39
rudra_2001
20 Dec, 2023, 08:42

it also says cannot access userId before intialization

rudra_2001
20 Dec, 2023, 08:44

Nevermind I didnt import the ID from appwrite module

rudra_2001
20 Dec, 2023, 08:44

Here is the code

rudra_2001
20 Dec, 2023, 08:45
rudra_2001
20 Dec, 2023, 08:46

Close the thread as SOLVED.

rudra_2001
20 Dec, 2023, 09:47

Not able to register a user [SOLVED]

Drake
20 Dec, 2023, 20:01

@VincentGe do we have a PR for this yet?

Drake
20 Dec, 2023, 20:01

[SOLVED] Not able to register a user

ideclon
20 Dec, 2023, 20:02

Sorry, I meant "unique()" as a string (ID.unique() just returns a string "unique()")

VincentGe
20 Dec, 2023, 20:26

Ugh I swear I fixed this

VincentGe
20 Dec, 2023, 20:28
VincentGe
20 Dec, 2023, 20:28

Review please

Diversified
23 Dec, 2023, 12:35

happening with me as well mhow did you solve this?

ideclon
23 Dec, 2023, 21:48

What’s your issue?

Diversified
24 Dec, 2023, 04:35

nvm, I opened another thread and the issue is resolved

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