Auth0 Home Blog Docs

Receiving user already exists for a user that doesn’t

signup

#1

Hello I can’t signup with a new user, I always receive this error message:
The user already exists.
I am using a custom mongodb database currently with no user stored inside.
Does anyone has an idea about what I m doing wrong ?
Many thanks.


#2

Can you clarify the following:

  • Do you have Import to Auth0 turned on for the custom database connection?
  • Can you check whether that user exists by doing a user search via Management API v2

#3

Hi, thank you for your answer, I have tried both options import to Auth0 and not import to Auth0, but i get the same result. The user I’m trying to add can’t exist because I user with very original email like ffggjj@oop.com or bghtf@cc.com or whatever else that can’t already exist.


#4

Can you please try the following to debug the issue:

  • Add console.log(); statements inside your Create script in your custom database connection settings; I suggest adding them before each callback call.
  • Monitor the logs using the Realtime Webtask Logs extension
  • Perform a signup using a non-existent email address in your custom db
  • See which console.log statements were executed in your script.

#5

Can you please try the following to debug the issue:

  • Add console.log(); statements inside your Create script in your custom database connection settings; I suggest adding them before each callback call.
  • Monitor the logs using the Realtime Webtask Logs extension
  • Perform a signup using a non-existent email address in your custom db
  • See which console.log statements were executed in your script.

#6

Thank you Prashant,
I had put a wrong ‘Get User’ script.
I corrected it and it’s now OK,
Thank you very much for your help and the trick about RealTiem WebTask Logs Extension.


#7