Auth0 Home Blog Docs

Script generated an unhandled asynchronous exception 500 error

api
users
roles
authorization-extens

#1

I’m getting following an error sometime. when call to get roles of user from Authorization extension. i use laravel project
[

]
please help me to solve this error.I also checked log but i didn’t found


#3

Hey there @dharmesh13! Is the error intermittent? Do have any additional logging that may be showing details on the error you are receiving? Any extra information you may have on the project may help in our investigation. Thanks in advance!


#4

@James.Morrison No, i don’t have any additional logging detail. I get that error which was uploaded image


#5

@James.Morrison I got following log

2018-09-18T06:24:04.980Z - info: Starting Authorization Extension - Version: 2.4.9
11:54:04 AM:
 2018-09-18T06:24:04.982Z - info: > WT_URL: https://core-demo.us.webtask.io/adf6e2f2b84784b57522e3b19dfc9201
11:54:04 AM:
 2018-09-18T06:24:04.982Z - info: > PUBLIC_WT_URL: https://core-demo.us.webtask.io/adf6e2f2b84784b57522e3b19dfc9201
11:54:05 AM:
 2018-09-18T06:24:05.727Z - info: Initializing the Webtask Storage Context.
11:54:05 AM:
 {
"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)"
}
11:54:05 AM:
 Code generated an uncaught exception: Error: Blocked event loop
at <anonymous>:1:38
at nextTickCallbackWith0Args (node.js:489:9)
at process._tickDomainCallback (node.js:459:13)
11:54:05 AM:
 finished webtask request 1537251843916.473246 with HTTP 500 in 2039ms
11:54:05 AM:
 setting tenant quarantine
11:54:05 AM:
 faulting webtask container following request 1537251843916.473246 failure

#6

Thank you for the latest log @dharmesh13, it helped lead us towards finding that your issue you are experiencing with the Auth0 Authorization Extension is a ongoing challenge as detailed here in this Github issue:

If you could please answer the following questions here in this thread as well in the Github issue thread. It will allow us to further gain traction on eliminating this hurdle:

  • What version of the extension you are using?
  • What is your storage type (extension storage vs S3) and approximate storage size?
  • Could you share some metrics about your data? i.e. how many users, groups, roles, etc do you have?
  • What endpoints are causing the error? e.g. /policy , /login , group/roles management?

Thank you in advance!


#7

@James.Morrison Here is the answers of questions of you and thank you for helping me :slight_smile:

  • Auth0 Authorization 2.4
  • extension storage
  • Total Users : 75, Groups: 3, roles:24
  • API endpoint /api/users/{auth_id}/roles

#8

@James.Morrison, @jmangelo Have any updates?

Thank you


#9

Hey @dharmesh13 thanks for following up, this issue is still on going and we don’t have a ETA for the fix as of yet. As soon as the Github Issue thread is updated we will have a better idea on how to move forward. Thanks!