# Kibana 7.6 is failing with http 413 when importing saved object file 50MB

**URL:** <https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278>\
**Category:** Kibana\
**Created:** [September 2, 2020, 6:29pm UTC](https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278 "2020-09-02T18:29:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhonda\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rhonda_gregory/32/50687_2.png) [@Rhonda\_Gregory](https://discuss.elastic.co/u/Rhonda_Gregory)\
**Post date:** [September 2, 2020, 6:29pm UTC](https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278/1 "2020-09-02T18:29:02Z")

</div>

We have elastic 7.6 and kibana 7.6 both on an EC2 instance and accessed via localhost. No components in between. I'm trying to import 50MB saved object file exported from another kibana instance . The import fails with 413.

I have set server.maxPayloadBytes: 104857600 in kibana

Should this be working or am I missing other settings. I understand elastic defaults to 100MB for http.max-content-length

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [September 3, 2020, 10:06pm UTC](https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278/2 "2020-09-03T22:06:21Z")

</div>

Hey @Rhonda_Gregory --- There's also a separate `savedObjects.maxImportPayloadBytes` setting [which is applied to the Saved Object Import REST API](https://github.com/elastic/kibana/blob/7.6/src/legacy/server/saved_objects/routes/import.ts#L60) and defaults to 10MB.

I'd try increasing that and see if you have any luck.

---

<div class="post-metadata">

**Author:** ![Rhonda\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rhonda_gregory/32/50687_2.png) [@Rhonda\_Gregory](https://discuss.elastic.co/u/Rhonda_Gregory)\
**Post date:** [September 5, 2020, 1:44pm UTC](https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278/3 "2020-09-05T13:44:04Z")

</div>

Thank you so much! That did the trick! We've been trying to solve this since the end of May!!! It also fixed a canvas problem we were having with large assets!

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [September 6, 2020, 1:13am UTC](https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278/4 "2020-09-06T01:13:11Z")

</div>

Great! Glad to hear it worked!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 4, 2020, 1:13am UTC](https://discuss.elastic.co/t/kibana-7-6-is-failing-with-http-413-when-importing-saved-object-file-50mb/247278/5 "2020-10-04T01:13:20Z")

</div>

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