Error while editing : Forbidden

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’

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).

Hello @Anne-Claire_Gerard,

After investigating on my side, I see that your role permissions 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 and your agent. SSE are often stuck on your proxy due to buffering. You can disable the buffering with the following configuration:

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,

Hi,

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

Best regards,
Anne-Claire