# Specific User cannot load Forest

**URL:** <https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174>\
**Category:** Help me!\
**Created:** [April 11, 2024, 6:08pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174 "2024-04-11T18:08:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maicol\_Bentancor](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/maicol_bentancor/32/850_2.png) [@Maicol\_Bentancor](https://community.forestadmin.com/u/Maicol_Bentancor)\
**Post date:** [April 11, 2024, 6:08pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/1 "2024-04-11T18:08:43Z")

</div>

![Screenshot 2024-04-11 at 14.35.03](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0d835906907d18eef4d61e1cdc7e385e3f87cd46.jpeg)

## Observed behavior

A new user loads Forest and it throws 500, the server error is the next:

```javascript
undefined method `[]' for nil:NilClass (NoMethodError)

          is_allowed = collections_data[collection_name][action].include? user_data['roleId']

```

However, when I do `ForestLiana::ForestApiRequester.get('/liana/v4/permissions/users')`, I see the user isn’t in the list, like the user is in the “invited” state.

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [April 12, 2024, 6:08am UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/2 "2024-04-12T06:08:52Z")

</div>

Hello @Maicol_Bentancor,

Thank you for your feedback. I see 2 problems in your case:

1. The agent should not throw a 500 when trying to retrieve the user’s rights
2. The user should be included in the response of `/liana/v4/permissions/users`

We’ll investigate these issues and let you know when they are fixed.

In the meantime, can you please give me more info about your project? It’ll help us force the update of permissions and speed up the investigation:

```javascript
<!-- Please provide in this **mandatory section** , the relevant information about your configuration: -->
- Project name: ...
- Team name: ...
- Environment name: ...
- Agent technology: (node, php, rails, python)
- Agent (forest package) name & version: ...
- Database type: ...
- Recent changes made on your end if any: ... 

```

Thank you

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [April 12, 2024, 6:52am UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/3 "2024-04-12T06:52:35Z")

</div>

Hello @Maicol_Bentancor,

The error regarding your user’s permission should be fixed. We are still investigating the error, but the user should be able to access Forest Admin now.

---

<div class="post-metadata">

**Author:** ![Maicol\_Bentancor](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/maicol_bentancor/32/850_2.png) [@Maicol\_Bentancor](https://community.forestadmin.com/u/Maicol_Bentancor)\
**Post date:** [April 12, 2024, 3:02pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/4 "2024-04-12T15:02:13Z")

</div>

Thanks, definitively solved the issue for the user, do you still need the other info?

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [April 15, 2024, 5:53am UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/5 "2024-04-15T05:53:37Z")

</div>

Yes because I’d need to investigate why you had this particular problem.

---

<div class="post-metadata">

**Author:** ![Maicol\_Bentancor](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/maicol_bentancor/32/850_2.png) [@Maicol\_Bentancor](https://community.forestadmin.com/u/Maicol_Bentancor)\
**Post date:** [April 15, 2024, 12:07pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/6 "2024-04-15T12:07:43Z")

</div>

Sounds good, I will attach the details, let me know if I miss anything:

- Environment name: production
- Agent technology: (node, php, rails, python): ruby
- Agent (forest package) name & version: forest\_liana 9.2.0
- Database type: postgres
- Recent changes made on your end if any: We updated the agent on April 9th, previously we had 9.1.0

---

<div class="post-metadata">

**Author:** ![Maicol\_Bentancor](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/maicol_bentancor/32/850_2.png) [@Maicol\_Bentancor](https://community.forestadmin.com/u/Maicol_Bentancor)\
**Post date:** [June 5, 2024, 8:08pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/7 "2024-06-05T20:08:30Z")

</div>

We added another user and had the same error, can you fix it for the user? Also, is there an ETA on the fix for the root cause?

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [June 6, 2024, 8:07am UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/8 "2024-06-06T08:07:26Z")

</div>

Hello @Maicol_Bentancor,

Do you still have the same issue today? Is it on the user `kr[...]e@h[...].com`?

I checked on our side and data seems OK on our side for this user.

---

<div class="post-metadata">

**Author:** ![anon21153075](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anon21153075](https://community.forestadmin.com/u/anon21153075)\
**Post date:** [June 6, 2024, 8:31am UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/9 "2024-06-06T08:31:32Z")

</div>

Hello @Maicol_Bentancor,

Have you override the permssion system ?

Because you should get the error `the collection 'collection_name' doesn't exist` instead of `undefined method '[]' for nil:NilClass`.

---

<div class="post-metadata">

**Author:** ![Maicol\_Bentancor](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/maicol_bentancor/32/850_2.png) [@Maicol\_Bentancor](https://community.forestadmin.com/u/Maicol_Bentancor)\
**Post date:** [June 6, 2024, 5:19pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/10 "2024-06-06T17:19:12Z")

</div>

> Because you should get the error `the collection 'collection_name' doesn't exist`

Yes, I’m getting that error, it’s raised because the above, also it makes sense because is rescued here: [forest-rails/app/services/forest\_liana/ability/permission.rb at c828cf8890dc41d0a3062902d6d72e4b8a534ffc · ForestAdmin/forest-rails · GitHub](https://github.com/ForestAdmin/forest-rails/blob/c828cf8890dc41d0a3062902d6d72e4b8a534ffc/app/services/forest_liana/ability/permission.rb#L28)

> Is it on the user ?

The user was s\*\*\*r@\*\*[t.com](http://t.com), but is fixed now because we deleted another user, so it’s a problem with the limit of users, it will come up again in the future.

Regards,

Maicol

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [June 7, 2024, 12:19pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/11 "2024-06-07T12:19:02Z")

</div>

Hello @Maicol_Bentancor,

Can you open another ticket for you current issue? The error you get probably does not match the one at the beginning of the thread. It’s probably another issue.

I don’t think your project have any limitation regarding the number of users. I think it might be a problem with our endpoint to retrieve users permissions. Your help to identify the reproduction scenario would be appreciated to definitively fix this issue.

---

<div class="post-metadata">

**Author:** ![anon21153075](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anon21153075](https://community.forestadmin.com/u/anon21153075)\
**Post date:** [June 7, 2024, 12:48pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/12 "2024-06-07T12:48:10Z")

</div>

I reproduce this issue on my end.  
I have opened a ticket and I’ll get back to you when this issue has been resolved.

---

<div class="post-metadata">

**Author:** ![Maicol\_Bentancor](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/maicol_bentancor/32/850_2.png) [@Maicol\_Bentancor](https://community.forestadmin.com/u/Maicol_Bentancor)\
**Post date:** [June 7, 2024, 1:09pm UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/13 "2024-06-07T13:09:30Z")

</div>

Thank you!

> [@GuillaumeGautreau](#):
>
> Can you open another ticket for you current issue? The error you get probably does not match the one at the beginning of the thread. It’s probably another issue.

It’s the same issue, we even have the same Sentry report, but yeah it’s 2-level of exception and I wasn’t putting the right one here for investigation.

---

<div class="post-metadata">

**Author:** ![anon21153075](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@anon21153075](https://community.forestadmin.com/u/anon21153075)\
**Post date:** [June 10, 2024, 8:36am UTC](https://community.forestadmin.com/t/specific-user-cannot-load-forest/7174/14 "2024-06-10T08:36:16Z")

</div>

Hello @Maicol_Bentancor,

The fix has been released on the new version 9.3.8 🚀
