Failed to load resource: the server responded with a status of 413 (Payload Too Large)

Feature(s) impacted

Smart Action

Observed behavior

We have a smart action to upload a document which is behind a request approval workflow when we go to trigger the action we get an error of “You don’t have the right to trigger this action anymore.” And if I check my console I’m getting an error of the Payload Too Large.

But when I remove it from the request approval workflow and make it so the smart action just triggers the request goes through, which makes me think it’s not related to the file size but some error on the request-approval side.

As on Forest Admin and on our server we have the file size limit to be 20mb and the file that we’re currently uploading is 4mb

Expected behavior

For the smart action to execute successfully and go to the request approval workflow

Failure Logs


Context

  • Project name: Ourboro
  • Team name: Customer Experience
  • Environment name: Production or Development
  • Agent type & version: …
  • Recent changes made on your end if any: …

Hi @Zero :wave:

We are on the subject to tackle the issue.
We will let you know when it will be released.

Best regards,

Shohan

Great thank you, do you think this will be for today? just need to plan with my team and do a work around if that’s not the case

Hi @Zero

As we have no storage of our own on the agents side (and obviously can’t create tables on your database), approval workflow works the following way:

  • When the approval request is submitted, the content of the smart action form is saved in our servers
  • When an authorized user accepts the approval request, the frontend downloads the content of the form from our servers, and replays it to your agent (the approver is the one submitting the smart action).

The issue that you are having is that the initial form submission is larger than the max body size in our server.

I asked the performance team, and wrote a PR to increase that limit to 20mb on our side, but I’m still waiting for my coworkers to review and merge it.

It should be done tomorrow

I just merged the PR.

It should be live in less than 10min

@Zero the fix is live now!
Please let us know if everything is working as expected on your side.
Thanks!