# Is there any example on how to limit request size?

**URL:** <https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366>\
**Category:** Developer\
**Created:** [March 1, 2025, 11:59am UTC](https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366 "2025-03-01T11:59:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [March 1, 2025, 11:59am UTC](https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366/1 "2025-03-01T11:59:00Z")

</div>

> [@Newsletter March 2025](https://discuss.tryton.org/t/newsletter-march-2025/8350/1):
>
> We [added a size limit for RPC arguments](https://foss.heptapod.net/tryton/tryton/-/issues/10301) and [documented it](https://docs.tryton.org/latest/server/ref/rpc.html#trytond.rpc.RPC.size_limits). E.g. it is useful to limit too resource consuming operations.

This sounds useful. Anyhow from the documentation I have no clue how to use it. Is there an example?

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [March 1, 2025, 1:21pm UTC](https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366/2 "2025-03-01T13:21:33Z")

</div>

> [@htgoebel](#):
>
> Is there an example?

Yes, have a look in the [merge request or changeset](https://foss.heptapod.net/tryton/tryton/-/commit/fd45274f2455dcc89c4d0799c5c7a722f07b2719?merge_request_iid=2005#5bdea58840db85ef66e576633a5df7910749bbe0).

---

<div class="post-metadata">

**Author:** ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)\
**Post date:** [March 1, 2025, 8:09pm UTC](https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366/3 "2025-03-01T20:09:40Z")

</div>

Thanks. Sadly the examples are of limited help. I had to read [the source](https://foss.heptapod.net/tryton/tryton/-/commit/fd45274f2455dcc89c4d0799c5c7a722f07b2719?merge_request_iid=2005#f78f8e577417a7ddbf7eca146ffb2023c085ae41_92_99) to understand how this is intended to work. ☹

---

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [March 4, 2025, 1:17pm UTC](https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366/4 "2025-03-04T13:17:32Z")

</div>

> [@htgoebel](#):
>
> Sadly the examples are of limited help.

It would be great, if you find time to add a sentence or two with a better explanation or example. TIA

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [March 6, 2025, 12:54pm UTC](https://discuss.tryton.org/t/is-there-any-example-on-how-to-limit-request-size/8366/5 "2025-03-06T12:54:09Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
