# Error: status 413 Payload Too Large

**URL:** <https://forum.dfinity.org/t/error-status-413-payload-too-large/27507>\
**Category:** Developers\
**Created:** [February 12, 2024, 8:19am UTC](https://forum.dfinity.org/t/error-status-413-payload-too-large/27507 "2024-02-12T08:19:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrey](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/shrey/32/15181_2.png) [@shrey](https://forum.dfinity.org/u/shrey)\
**Post date:** [February 12, 2024, 8:19am UTC](https://forum.dfinity.org/t/error-status-413-payload-too-large/27507/1 "2024-02-12T08:19:39Z")

</div>

Hi Everyone,  
I’m working on a Rust canister which Stores a struct data, and provisions two different canisters using wasm. I have multiple functions to input and store struct data in parts, and have one function to provision both new canisters, but while deploying getting error " Error: status 413 Payload Too Large, content type “text/plain”,",

 ![Screenshot 2024-02-12 133916](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/e/e7fed5492fc3e9a50ac840e6165b7766e6be8974.png)

but after commenting the canister provisioning function, this was working fine, so I assume I’m getting error of high payload when putting both the functionalities in single canister due to size of wasm file.  
I had tried ‘gzip’ on wasm after build and then deploying canister, and also tried with different versions of dfx, but didn’t work.  
and getting

> “reject message Chunked upload API is not yet implemented, error code Some(“IC0516”)”

for latest version,  
please let me know how to work with this or if I’m missing anything.  
Thanks

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [February 12, 2024, 10:35am UTC](https://forum.dfinity.org/t/error-status-413-payload-too-large/27507/2 "2024-02-12T10:35:15Z")

</div>

Currently, WASMS on mainnet are restricted to 2MiB payload sizes. The [larger wasms feature](https://forum.dfinity.org/t/allow-installation-of-large-wasm-modules/17372) is very close to being enabled on mainnet.
