Auth0 Home Blog Docs

Signup gives me a HTTP500 while migrating user from custom database


#1

Hi,

I set up my Wordpress with the Auth0 Plugin. I want to migrate existing users. So I created an Auth0 connection with:

Import Users to Auth0: Activated
Use my own database: Activated

I added the custom database scripts for “Login” and “Get User”, and it is now possible to migrate Users. But the sign up does not work anymore. When I try to sign up a user, Auth0 returns me HTTP500:

{"message":"Not found","fromSandbox":true}

The request I see in Chrome developer tools ist:

URL: https://myaccount.eu.auth0.com/dbconnections/signup
Method: POST
Data:
{
	"client_id":"my_client_id",
	"connection":"my_connection",
	"email":"new_users@email.de",
	"password":"my_password"
}

When I disable “Use my own database” everything works fine, it is possible to Login and Sign-Up.

What could be wrong? How can I debug this?

Thank you!


#2

Found the problem: My “Get User” script returned: callback(‘User not found’), if the user could not be found. But it should return callback();, if user does not exist in my custom database.