Back

[ SOLVED ] I can't create a new user. “Error: A user with the same email already exists in your proj

  • 0
  • Self Hosted
  • Functions
  • Users
  • Web
jekalat
23 May, 2023, 19:45

Hi! I call a function (in function I create user) from the web client, to which I send the payload with the email. It allows me to create a single user at first time. Then I call the function again and send another email, but returns an error “Error: A user with the same email already exists in your project.” and will return an error to any email I send after

This can go on indefinitely. Deploying a function does not change the answer. I can only break this by changing or deleting any existing user. After this action, I can create again only one user and everything repeats again.

Function made by nodejs

I can show the code if needed Thank you

TL;DR
Title: [SOLVED] Error while creating a new user with same email in project Solution: Update to the latest version of Appwrite, as the issue has been fixed. Explanation: The user was unable to create a new user and received an error message stating that a user with the same email already exists in the project. It was discovered that the issue was caused by using the same phone number for multiple users. Once this was confirmed, the problem was resolved. The user was able to create a single user initially, but any subsequent attempts resulted in the same error. The issue persisted even after deploying a function and could only be
Binyamin
23 May, 2023, 19:47

I understand that your function is creating a user? How are you sending the email to the function?

Binyamin
23 May, 2023, 19:47

Can you show the code of both the function and the execution?

jekalat
23 May, 2023, 19:53
Binyamin
23 May, 2023, 19:54

Good. And you get the error even when you sending a different email the payload?

jekalat
23 May, 2023, 19:54

Yes

Drake
23 May, 2023, 19:54

Is the phone the same?

jekalat
23 May, 2023, 20:01

Yes thank you. It's because of the same number, I just checked. The error says it's a duplicate email and I didn't even look at the number when I tested it. Thanks a lot for your help!

Drake
23 May, 2023, 20:02

FYI, this should be fixed in the latest version of Appwrite

jekalat
23 May, 2023, 20:03

[ SOLVED ] I can't create a new user. “Error: A user with the same email already exists in your proj

jekalat
23 May, 2023, 20:03

@Steven @Binyamin Thank you

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