Cannot save bot flow due to 413 Payload too large error


Hey, I updated Botpress to 11.7.2 and I have an issue that flows cannot be saved. When I add a Choice skill, I get Payload too large 413 and even when I increased the bodyLimit to 50mb, the error persists.

 * @default 50mb
bodyLimit: string | number

I am not sure exactly what to do to fix the error, so any advice would be much appreciated.



Hi @persho, how did you fix / work around this? Did you also notice why exactly this happens? Is it really the bodyLimit or something such as “number of flows” / “number of nodes”?


You can try setting bodyLimit to some larger value (like 5mb) in data/global/botpress.config.json. E.g. like this:

  "$schema": "../botpress.config.schema.json",
  "httpServer": {
    "host": "localhost",
    "port": 3000,
    "backlog": 0,
    "bodyLimit": "5mb",
    "cors": {
      "enabled": true
    "session": {
      "enabled": false,
      "maxAge": "1h"

Thanks a lot @alex, that’s also what Sylvain told us and it works.
Actually, there’s also a PR to fix how the Studio sends the flows back to Botpress, so we stay tuned!