Back

Appwrite not connecting

  • 0
  • Web
ijay
16 May, 2023, 13:30
TL;DR
Appwrite not connecting. User was having trouble with the `uuidv4` function in their JS code. They needed to change the order of the arguments in the `account.create` function call. They also shared their version and asked if they need to show their config file. Support suggested changing the order of the arguments and provided a link for more information on the `account.create` function.
Binyamin
16 May, 2023, 13:33

Okay, then all you need to do is just send an email address. So I think you need to replace the order of the arguments like so.

TypeScript
const promise = account.create(
  uuidv4,
  user.email,
  user.password,
  user.name
)

You can see more here: https://appwrite.io/docs/client/account?sdk=web-default#accountCreate

Binyamin
16 May, 2023, 13:33

Try this and lmn

Binyamin
16 May, 2023, 13:34

Also, What version of Appwrite you're using?

ijay
16 May, 2023, 13:38

I just sign up for the hackathon as i received the mail. let me check what version

Binyamin
16 May, 2023, 13:39

Ohh you on the cloud

Binyamin
16 May, 2023, 13:39

That's cool no need to check the version

ijay
16 May, 2023, 13:42

version 1.1.2

ijay
16 May, 2023, 13:48

am sorry am disturbing u

ijay
16 May, 2023, 13:48

it d not work

ijay
16 May, 2023, 13:49

let me send d preview screenshot

Binyamin
16 May, 2023, 13:49

It's okay

Binyamin
16 May, 2023, 13:49

What error you're getting now?

ijay
16 May, 2023, 13:51
Binyamin
16 May, 2023, 13:52

That's weird, Can you show me your updated code?

ijay
16 May, 2023, 13:53

ok

ijay
16 May, 2023, 13:57

should i also show my config file

Binyamin
16 May, 2023, 14:00

Maybe the uuidv4 needed to be a function. Like this

TypeScript
const promise = account.create(
  uuidv4(),
  user.email,
  user.password,
  user.name
)
ijay
16 May, 2023, 14:32

Okay

ijay
16 May, 2023, 14:37

yes it has thank u

ijay
16 May, 2023, 14:37

uuid was meant to be a function

ijay
16 May, 2023, 14:38

am grateful

ijay
16 May, 2023, 15:51

My question y does d order matter

Binyamin
16 May, 2023, 15:51

In a regular JS function it's matter, yes.

ijay
16 May, 2023, 22:12

ok thank u

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