# ENOENT Error in the Authorization Extension

**URL:** <https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350>\
**Category:** Get Help\
**Tags:** api-authorization, authorization-extens, groups\
**Created:** [June 9, 2020, 6:42am UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350 "2020-06-09T06:42:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander-luminovo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@alexander-luminovo](https://community.auth0.com/u/alexander-luminovo)\
**Post date:** [June 9, 2020, 6:42am UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/1 "2020-06-09T06:42:16Z")

</div>

Hi, I am still using the Authorization Extension because of the group functionality. I have the following use case in my application:  
When a new user signs up in our custom sign up page, in my backend, I send the data with `POST /api/v2/users` to create the new user in auth0. After that, I need to assign the user to a group in the authorization extension, so I use `PATCH /groups/{group_id}/members` with the newly created user\_id of the auth0 user in the body. This API call returns (not always but quite often) the following error:

```
    {
      "code": 500,
      "message": "Failed to load code: ENOENT: no such file or directory, open '/data/io/node8/55e026dc-2433-43dd-b9c4-00f3f40ee293/webtask.js'",
      "error": "ENOENT: no such file or directory, open '/data/io/node8/55e026dc-2433-43dd-b9c4-00f3f40ee293/webtask.js'",
      "stack": "Error: ENOENT: no such file or directory, open '/data/io/node8/55e026dc-2433-43dd-b9c4-00f3f40ee293/webtask.js'"
    }

```

Also, when trying to access the authorization extension via the auth0 UI, I am getting the same error. The error is also appearing for other api calls such as `GET /users/{user_id}/groups` or `DELETE /groups/{group_id}/members`. Unfortunately, the error does not always appear, but quite often.

Things I tried out to solve the problem:

- Adding a sleep of up to 20 sec after creating the user → did not help
- Retrying 20 times with 1 sec of sleep in between → did somewhat help, but it is still unreliable and definitely to slow

I would appreciate any input on how to solve this issue. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![miki](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/miki/32/11099_2.png) [@miki](https://community.auth0.com/u/miki)\
**Post date:** [June 10, 2020, 11:48am UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/2 "2020-06-10T11:48:44Z")

</div>

We are having the same issue. this prevents us from logging in.  
Once out of 10 tries we succeed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 10, 2020, 12:23pm UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/4 "2020-06-10T12:23:06Z")

</div>

Hey Folks!

Let me debug it with you. Can I ask you first to record me the HAR files of those unsuccessful flows and share them with me via DM? This way I’ll be able to inspect what is happening behind the scenes of the browser. Also it would be great if you can send me your tenant names via private message as well. Thanks!

> **[Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files?_ga=2.264381512.678167983.1590992344-1553153414.1581060757)**
>
> Learn how to troubleshoot with HAR files and steps to generate a HAR file.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 12, 2020, 1:40pm UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/5 "2020-06-12T13:40:49Z")

</div>

Hey there Folks!

Have you had a chance to see my previous message?

---

<div class="post-metadata">

**Author:** ![alexander-luminovo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@alexander-luminovo](https://community.auth0.com/u/alexander-luminovo)\
**Post date:** [June 12, 2020, 1:43pm UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/6 "2020-06-12T13:43:59Z")

</div>

Yep, thanks for the answer, but while trying to produce the HAR file, I was no longer able to reproduce the error.

I will continue to monitor it and if I get the error again, I will message you with the HAR file of the flow.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 12, 2020, 1:45pm UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/7 "2020-06-12T13:45:48Z")

</div>

Perfect! Thanks for letting me know!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 11, 2020, 12:47pm UTC](https://community.auth0.com/t/enoent-error-in-the-authorization-extension/44350/8 "2020-09-11T12:47:15Z")

</div>


