# Error while uploading cookbook

**URL:** <https://discourse.chef.io/t/error-while-uploading-cookbook/13409>\
**Category:** Chef Infra (archive)\
**Created:** [August 7, 2018, 11:05am UTC](https://discourse.chef.io/t/error-while-uploading-cookbook/13409 "2018-08-07T11:05:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeepaws](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sandeepaws](https://discourse.chef.io/u/sandeepaws)\
**Post date:** [August 7, 2018, 11:05am UTC](https://discourse.chef.io/t/error-while-uploading-cookbook/13409/1 "2018-08-07T11:05:29Z")

</div>

Hi,

Am getting the error while uploading the cookbook to chef server.

ERROR: Request Entity Too Large  
Response: JSON must be no more than 1000000 bytes.

My cookbook file size is 200MB, I have verified the nginx.conf file **client\_max\_body\_size** has set 250MB

---

<div class="post-metadata">

**Author:** ![joris](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joris/32/2193_2.png) [@joris](https://discourse.chef.io/u/joris)\
**Post date:** [August 7, 2018, 9:44pm UTC](https://discourse.chef.io/t/error-while-uploading-cookbook/13409/2 "2018-08-07T21:44:07Z")

</div>

The error is not from the webserver, because it gives you the hint : "JSON must be no more than 1000000 bytes."

So it must be in the chef-server config although I'm not familiar with what option to change.

Personnal advice is if your cookbook is 200MB then you have a design problem somewhere.  
My 2 cents

---

<div class="post-metadata">

**Author:** ![nkadel](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@nkadel](https://discourse.chef.io/u/nkadel)\
**Post date:** [August 8, 2018, 12:32am UTC](https://discourse.chef.io/t/error-while-uploading-cookbook/13409/3 "2018-08-08T00:32:59Z")

</div>

_Why_ is your cookbook running into this limit? Are you shoveling big binaries in there?
