# Error while editing : Forbidden

**URL:** <https://community.forestadmin.com/t/error-while-editing-forbidden/7694>\
**Category:** Help me!\
**Created:** [December 9, 2024, 6:14pm UTC](https://community.forestadmin.com/t/error-while-editing-forbidden/7694 "2024-12-09T18:14:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anne-Claire\_Gerard](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/anne-claire_gerard/32/7529_2.png) [@Anne-Claire\_Gerard](https://community.forestadmin.com/u/Anne-Claire_Gerard)\
**Post date:** [December 9, 2024, 6:14pm UTC](https://community.forestadmin.com/t/error-while-editing-forbidden/7694/1 "2024-12-09T18:14:57Z")

</div>

## Feature(s) impacted

Edition of a record

## Observed behavior

When saving modification of a record, an error pops: ‘An error occurred when trying to edit map: Forbidden’

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0ee98ec797c3bed4199f53927a7e6a973e7bc713.png)

## Expected behavior

Edition to function

## Failure Logs

logs indicate:  
warning: [403] PUT /forest/map\_v2/695154 - 1ms

## Context

- Project name: smappen
- Team name: operations
- Environment name: Production
- Agent technology: nodejs
- Agent (forest package) name & version: @forestadmin/agent 1.53.1
- Database type: postgresql
- Recent changes made on your end if any: Recent migration to the forest agent. Not sure it worked since the migration took place.

The update functions correctly on other environments (Staging/Development).

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [December 10, 2024, 9:30am UTC](https://community.forestadmin.com/t/error-while-editing-forbidden/7694/2 "2024-12-10T09:30:49Z")

</div>

Hello @Anne-Claire_Gerard,

After investigating on my side, I see that your role [permissions](https://docs.forestadmin.com/user-guide/project-settings/teams-and-users/manage-roles#collection-permissions-1) are set properly to allow you to edit this collection.  
And that permissions were updated at 09/12/2024 09 am.

I suspect that the issue comes from the SSE we are using to notify your agent of permission changes. This can happen when a reverse proxy is in the middle of our server [api.forestadmin.com](http://api.forestadmin.com) and your agent. SSE are often stuck on your proxy due to buffering. You can disable the buffering with the following configuration:

```javascript
fastcgi_buffering off;
proxy_buffering off;

```

If you wish to test if this is the root cause of your issue, you can try restarting the agent which will refresh the permission cache, and you should be able to update your record as expected.

Best regards,

---

<div class="post-metadata">

**Author:** ![Anne-Claire\_Gerard](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/anne-claire_gerard/32/7529_2.png) [@Anne-Claire\_Gerard](https://community.forestadmin.com/u/Anne-Claire_Gerard)\
**Post date:** [December 10, 2024, 9:39am UTC](https://community.forestadmin.com/t/error-while-editing-forbidden/7694/3 "2024-12-10T09:39:58Z")

</div>

Hi,

Thank you for your quick reply.  
Restarting the agent did the trick, and the update is now possible!

Best regards,  
Anne-Claire
