You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whatever I put in userId, email, password or name I get AppwriteException: user_already_exists. This happens only in one app, if I use the same code in a new app it works. Is there some limit per app or something?
@develocode777, thanks for creating this issue! 🙏🏼 It looks like this occurs when a user with a phone number has logged in and tries to create a new account. Let me talk to the team about how to proceed with this.
I was testing Appwrite Authentication for a project and when I tried to log-in a new user (OAuth 2) that error occurred:
{
"message": "A user with the same id, email, or phone already exists in this project.",
"code": 409,
"type": "user_already_exists",
"version": "1.5.10"
}
but It was because there was already another session in there so I used the log-out function which has the current user session remove method. (deleteSession('current'))
I am using React-Native Expo and have 2 Android emulators - API 35 and API 33. The API 35 doesn't have any issue creating a new user, but the API 33 recently started having problems.
version - "appwrite": "^16.1.0"
"expo": "~52.0.20"
When you delete a user, everything associated with the user (e.g. Identities, targets, etc) is deleted in a background job. The background job may take some time to process depending on what else is in the queue. So, you can get an error if you try to create a new account with the same email before the identity was deleted.
Make sure to delete the targets and identities first before deleting the user if you need to reuse the email before the background job runs.
Activity
develocode777 commentedon Sep 15, 2023
It appears that this happens when I am logged in with a specific user, with a different user the same code works.
develocode777 commentedon Sep 15, 2023
I found where it comes from, if you enter a phone number in auth you can't create a user anymore.
stnguyen90 commentedon Sep 15, 2023
@develocode777, thanks for creating this issue! 🙏🏼 It looks like this occurs when a user with a phone number has logged in and tries to create a new account. Let me talk to the team about how to proceed with this.
nick2432 commentedon Nov 2, 2023
can i work on this issue?
joyalgeorgekj commentedon Aug 26, 2024
I was testing Appwrite Authentication for a project and when I tried to log-in a new user (OAuth 2) that error occurred:
but It was because there was already another session in there so I used the log-out function which has the current user session remove method. (
deleteSession('current'))It worked!
fasakinhenry commentedon Oct 27, 2024
Now I am having this error and I really don't know how to solve it
Welborn09 commentedon Jan 11, 2025
I am getting this as well.
I am using React-Native Expo and have 2 Android emulators - API 35 and API 33. The API 35 doesn't have any issue creating a new user, but the API 33 recently started having problems.
version - "appwrite": "^16.1.0"
"expo": "~52.0.20"
stnguyen90 commentedon Jan 18, 2025
When you delete a user, everything associated with the user (e.g. Identities, targets, etc) is deleted in a background job. The background job may take some time to process depending on what else is in the queue. So, you can get an error if you try to create a new account with the same email before the identity was deleted.
Make sure to delete the targets and identities first before deleting the user if you need to reuse the email before the background job runs.