Error: Script generated an unhandled asynchronous exception.

I’m trying to call my application API on The Pre User Registration of Auth0 but I get an error “Script generated an unhandled asynchronous exception.”

Error:
{
  "code": 500,
  "details": "Error: Script execution time exceeded",
  "error": "Script generated an unhandled asynchronous exception.",
  "message": "Script execution time exceeded",
  "name": "Error"
}