# Data processing limits - status code 413

**URL:** <https://community.n8n.io/t/data-processing-limits-status-code-413/9348>\
**Category:** Questions\
**Tags:** core\
**Created:** [November 23, 2021, 8:23am UTC](https://community.n8n.io/t/data-processing-limits-status-code-413/9348 "2021-11-23T08:23:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottjscott](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@scottjscott](https://community.n8n.io/u/scottjscott)\
**Post date:** [November 23, 2021, 8:23am UTC](https://community.n8n.io/t/data-processing-limits-status-code-413/9348/1 "2021-11-23T08:23:14Z")

</div>

Hi,

I have a SQL Server node which I am using to run a stored procedure which is returning 198k rows. I need to process this output through a workflow, but I keep getting a 413 status code error for most of the nodes I’ve tried to run after the SQL Server node.

I’m guessing that this is n8n complaining that the data payload is too big. I’ve tried a variety of mechanisms to break down the 198k payload, but no matter what I try I keep getting the 413 status error. Before I go any further, are there any tips for handling a large payload like this or am I beyond the limits of what I should be trying to do with n8n - if you say there is a method I will persevere, otherwise I’ll explore other options.

Thanks  
Scott

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [November 23, 2021, 8:57am UTC](https://community.n8n.io/t/data-processing-limits-status-code-413/9348/2 "2021-11-23T08:57:20Z")

</div>

Hi @scottjscott, chances are this is simply too much data to keep in memory. But you might want to check where the error originates as per this post:

> [@Request failed with status code 413](http://community.n8n.io/t/request-failed-with-status-code-413/3096/4):
>
> Sorry actually do not know where that error comes from. If from n8n (so Node.js) or the reverse proxy. But considering that apparently n8n crashes even with 10k rows, as it probably runs out of memory, does increasing the request limit not really help anyway.

If your n8n instance is still healthy, you might want to adjust your reverse proxy configuration.

---

<div class="post-metadata">

**Author:** ![scottjscott](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@scottjscott](https://community.n8n.io/u/scottjscott)\
**Post date:** [November 23, 2021, 8:53pm UTC](https://community.n8n.io/t/data-processing-limits-status-code-413/9348/3 "2021-11-23T20:53:23Z")

</div>

Thanks - I’ll give that a go, although I’ve just realised I should have said I was doing this in n8n desktop (just testing), so I imagine I’ve hit a limit sooner than I might do ordinarily.

---

<div class="post-metadata">

**Author:** ![scottjscott](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@scottjscott](https://community.n8n.io/u/scottjscott)\
**Post date:** [November 29, 2021, 6:44pm UTC](https://community.n8n.io/t/data-processing-limits-status-code-413/9348/4 "2021-11-29T18:44:01Z")

</div>

Hi @MutedJam, I’ve made a tweak to the configuration of my docker container, adjusting the docker-compose.yml to include the following setting under the labels section of the n8n container config:

- traefik.backend.buffering.maxRequestBodyBytes=128000000

I don’t understand the detailed ins and outs, but this enables the “buffering middleware” and in my case I set the number of bytes to 128MB. You can read more about it [here](https://doc.traefik.io/traefik/v2.0/middlewares/buffering/) in the Traefik docs.

I’ve got some further optimisation work to do to speed things up, and if I run into anything material I will post it here, but for now, I’ve got a working solution so thanks for the tips.

Regards  
Scott
