Back

api.ts:11 POST https://cloud.appwrite.io/v1/account 400 (Bad Request)

  • 0
  • Databases
  • Auth
  • Storage
  • Cloud
  • Functions
whizzyellah2
13 Apr, 2024, 18:16

Please I need help to fix this issue

I'm testing my signup form and on submit I get this error message on the console:

POST https://cloud.appwrite.io/v1/account 400 (Bad Request) createUserAccount @ api.ts:9 onSubmit @ SignupForm.tsx?t=1713031374242:41 Show 26 more frames

I tried cross-checking the document and followed through by ensuring I have the correct projectID and the endpoint but still facing the same error. I have attached screenshots of the endpoint, api.ts, the error on the console, and the submit form function.

TL;DR
Developers are experiencing a 400 (Bad Request) error when testing the signup form on their appwrite client. The issue may be due to the order of parameters userId, email, password, name instead of userId, email, name, password. Double-check parameters and setup in the appwrite client to resolve the error.
Kenny
13 Apr, 2024, 18:46

Not sure if this is the issue, but I believe it's userId, email, password, name.

Kenny
13 Apr, 2024, 18:47

You've got userId, email, name, password.

Kenny
13 Apr, 2024, 18:48

Can you show where you're setting up the appwrite client?

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