Back

[SOLVED] Cannot create a new user via the REST API.

  • 0
  • Accounts
Onyx4499
14 Apr, 2023, 19:07

Hi all, I am a new user to appwrite. I have just setup appwrite on my PC and was trying to create a new user using the Accounts API POST method as mentioned in the appwrite docs here https://appwrite.io/docs/client/account?sdk=rest-default#accountCreate . Whenever I try to do so I get an HTTP 400 Bad Response from the server as shown in the image. The message says that my password is invalid, but apparently i don't see anything wrong with the password i am trying to set. Is there anything I am missing here?

TL;DR
User encounters an issue while trying to create a new user using the Accounts API POST method. They receive a HTTP 400 Bad Response error indicating an invalid password, but they don't see anything wrong with the password they are trying to set. User realizes they flipped the contents of the name and password fields. Issue is resolved.
Drake
14 Apr, 2023, 19:18

It looks too short

Onyx4499
14 Apr, 2023, 19:28

Oh ok. I am very sorry. It's my mistake. Actually I intended the string written in the name field to be the password. I flipped the contents of the name and password fields.

Onyx4499
14 Apr, 2023, 19:31

It works fine now:

Onyx4499
14 Apr, 2023, 19:31

Thanks!

Drake
14 Apr, 2023, 19:39

[SOLVED] Cannot create a new user via the REST API.

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