Login Fail after Sign Up

I have a custom database with custom logn/create/get User scripts.

The regular login works.
But if I do a sign up, the user gets created but then an error happens and the Universal login form prompts again.

Here is the error:

{
  "date": "2023-09-24T00:33:23.445Z",
  "type": "f",
  "description": "Internal error",
  "connection_id": "",
  "client_id": "***********",
  "client_name": "********",
  "ip": "2804:14c:5bb1:5c37:611c:a35e:ee3f:89b1",
  "user_agent": "Chrome 117.0.0 / Windows 10.0.0",
  "details": {
    "body": {
      "state": "hKFo2SByUlhRbEwyNV9ja0loSTczQTh6YVZfc2tHelZfUEhNSqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIHdDVVlIelk1ZEg1VDVMRWUyb2oyOHZoTzBaNTI2N0oxo2NpZNkgRllCTXJ2U3RxUFNvS0lzR2JDWE9rWEhMUDdGaWc4MEs",
      "strengthPolicy": "none",
      "complexityOptions.minLength": "1",
      "username": "gas",
      "email": "gas@gmail.com",
      "password": "*****",
      "action": "default"
    },
    "qs": {},
    "error": {
      "message": "Internal error",
      "oauthError": "Internal error",
      "type": "server_error",
      "uri": null
    },
    "session_id": "8tEfxfTpztj4lRULkQkFJCgHL7thLlSJ",
    "riskAssessment": null
  },
  "hostname": "*********.us.auth0.com",
  "log_id": "90020230924003323487087000000000000001223372052172484312",
  "_id": "90020230924003323487087000000000000001223372052172484312",
  "isMobile": false,
  "id": "90020230924003323487087000000000000001223372052172484312"
}

Can someone help?

Hi @dudumonteiro,

Welcome to the Auth0 Community!

Are you seeing any errors when you use the “Save and Try” function in the Create Database Action Script?