Auth0 Home Blog Docs

Authorization Extension API Respond 500 Internal Server Error Randomly



I’m randomly receiving 500 Internal server Error when using Authorization Extension API in various scenarios with the following error messages.

500 Internal Server Error

Error: Script generated an unhandled asynchronous exception.

  • When adding users to roles
  • When loading all permissions, roles

500 Internal Server Error

Error: socket hang up\n at createhangUpError (_http_client.js:213:15)\n at Socket.socketOnEnd (_http_cli …

  • When try to load all roles (https://{ExtensionURL}/*******/api/roles)

Please let me know if you need further details on API calls triggering these errors. As I found the errors are coming very inconsistently and randomly, I would like to understand the meaning of these errors.

I would also like to understand the stability of Authorization Extension, because it also shows errors occasionally when I open Authorization Extension UI.

  "code": 500,
  "error": "Script generated an unhandled asynchronous exception.",
  "details": "Error: Blocked event loop",
  "name": "Error",
  "message": "Blocked event loop",
  "stack": "Error: Blocked event loop\n    at <anonymous>:1:38\n    at nextTickCallbackWith0Args (node.js:489:9)\n    at process._tickDomainCallback (node.js:459:13)"