PayloadTooLargeError - request entity too large (status code 413)

Hello!

We are working on a new store theme on VTEX IO and are experiencing an issue with setting content on listing pages. I think the issue has something to do with the blocks we used (we might be using too many).

After removing some of the blocks from the shelf’s quickview modal, the issue disappeared, but we’re wondering if there is a way to avoid having to do this.

Looking at the error headers, I can see that the content-length is quite large, exceeding 3MB in size. This is the clue that led us to assume the components structure is causing the issue and we removed some of them until it worked.

{

    "stack": "AxiosError: Request failed with status code 413\n    at settle (/usr/local/app/node_modules/axios/lib/core/settle.js:19:12)\n    at Unzip.handleStreamEnd (/usr/local/app/node_modules/axios/lib/adapters/http.js:793:11)\n    at Unzip.emit (node:events:519:28)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at processTicksAndRejections (node:internal/process/task_queues:82:21)\n    at Axios.request (/usr/local/app/node_modules/axios/lib/core/Axios.js:45:41)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/request/index.js:86:20\n    at routerCacheMiddleware (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/request/index.js:68:5)\n    at notFoundFallbackMiddleware (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/notFound.js:17:5)\n    at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/cache.js:63:20\n    at acceptNotFoundMiddleware (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/notFound.js:13:5)\n    at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/inflight.js:33:17",

"details": {

"message": "Request failed with status code 413",

"name": "AxiosError",

"code": "ERR_BAD_REQUEST",

"config": {

"baseURL": "http://app.io.vtex.com/vtex.pages-graphql/v2/{{account}}/{{workspace}}/_v/graphql",

"cacheable": 0,

"data": "{\"query\":\"query pageContent($input: PageContentInput) {\\n  pageContent(input: $input) {\\n    contentMapJSON\\n    extensionsContent {\\n      contentJSON\\n      contentIds\\n      treePath\\n    }\\n    appsMessages {\\n      key\\n      message {\\n        from\\n        context\\n        content\\n      }\\n    }\\n    userMessages {\\n      key\\n      message {\\n        from\\n        context\\n        content\\n      }\\n    }\\n  }\\n}\",\"variables\":{\"input\":{\"extensions\":\"{\\\"store.search#department\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:store.search.product-comparison#department\\\",\\\"props\\\":{\\\"context\\\":{\\\"maxItemsPerPage\\\":12,\\\"facetsBehavior\\\":\\\"Dynamic\\\"},\\\"elements\\\":[\\\"search-result-layout-custom#department\\\"]},\\\"implements\\\":[\\\"{{account}}.{{client}}-store-theme@0.x:store.search.product-comparison\\\",\\\"vtex.store@2.x:store.search\\\",\\\"vtex.store@2.x:store\\\"]},\\\"store.search#department/$before_header.full\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:header.full\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store-header@2.x:header.full\\\",\\\"vtex.store-header@2.x:header\\\"]},\\\"store.search#department/$around_comparison-context-wrapper\\\":{\\\"blockId\\\":\\\"vtex.product-comparison@0.x:comparison-context-wrapper\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.product-comparison@0.x:comparison-context-wrapper\\\"]},\\\"store.search#department/$around_searchWrapper\\\":{\\\"blockId\\\":\\\"vtex.store@2.x:searchWrapper\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store@2.x:searchWrapper\\\"]},\\\"store.search#department/$around_storeWrapper\\\":{\\\"blockId\\\":\\\"vtex.store@2.x:storeWrapper\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store@2.x:storeWrapper\\\"]},\\\"store.search#department/$around_challenge\\\":{\\\"blockId\\\":\\\"vtex.store@2.x:challenge\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store@2.x:challenge\\\"]},\\\"store.search#department/$after_footer\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:footer\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store-footer@2.x:footer\\\"]},\\\"store.search#department/$after_pixels\\\":{\\\"blockId\\\":\\\"vtex.pixel-interfaces@1.x:pixels\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.pixel-interfaces@1.x:pixels\\\"]},\\\"store.search#department/search-result-layout-custom#department\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:search-result-layout-custom#department\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"{{account}}.{{client}}-store-theme@0.x:search-result-layout-custom\\\"]},\\\"store.search#department/$before_header.full/header-layout.desktop\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:header-layout.desktop\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store-header@2.x:header-layout.desktop\\\",\\\"vtex.store-header@2.x:header-layout\\\"]},\\\"store.search#department/$before_header.full/header-layout.mobile\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:header-layout.mobile\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store-header@2.x:header-layout.mobile\\\",\\\"vtex.store-header@2.x:header-layout\\\"]},\\\"store.search#department/$around_storeWrapper/highlight-overlay\\\":{\\\"blockId\\\":\\\"vtex.admin-pages@4.x:highlight-overlay.cms\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.admin-pages@4.x:highlight-overlay.cms\\\",\\\"vtex.store@2.x:highlight-overlay\\\"]},\\\"store.search#department/$after_footer/footer-layout.desktop\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:footer-layout.desktop\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store-footer@2.x:footer-layout.desktop\\\",\\\"vtex.store-footer@2.x:footer-layout\\\"]},\\\"store.search#department/$after_footer/footer-layout.mobile\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:footer-layout.mobile\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.store-footer@2.x:footer-layout.mobile\\\",\\\"vtex.store-footer@2.x:footer-layout\\\"]},\\\"store.search#department/$after_pixels/pixel.sae-analytics\\\":{\\\"blockId\\\":\\\"vtex.sae-analytics@2.x:pixel.sae-analytics\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.sae-analytics@2.x:pixel.sae-analytics\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.events-tracking\\\":{\\\"blockId\\\":\\\"{{account}}.events-tracking@0.x:pixel.events-tracking\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"{{account}}.events-tracking@0.x:pixel.events-tracking\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.gtm\\\":{\\\"blockId\\\":\\\"vtex.google-tag-manager@3.x:pixel.gtm\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.google-tag-manager@3.x:pixel.gtm\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.trusted\\\":{\\\"blockId\\\":\\\"vtexeurope.trusted-pixel@0.x:pixel.trusted\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtexeurope.trusted-pixel@0.x:pixel.trusted\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.rc\\\":{\\\"blockId\\\":\\\"vtex.request-capture@2.x:pixel.rc\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.request-capture@2.x:pixel.rc\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.themarketer\\\":{\\\"blockId\\\":\\\"iviteb.themarketer-pixel@0.x:pixel.themarketer\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"iviteb.themarketer-pixel@0.x:pixel.themarketer\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.power-reviews\\\":{\\\"blockId\\\":\\\"{{account}}.powerreviews@1.x:pixel.power-reviews\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"{{account}}.powerreviews@1.x:pixel.power-reviews\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/$after_pixels/pixel.synerise\\\":{\\\"blockId\\\":\\\"synerisepartnerar.synerise-integration@1.x:pixel.synerise\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"synerisepartnerar.synerise-integration@1.x:pixel.synerise\\\",\\\"vtex.pixel-interfaces@1.x:pixel\\\"]},\\\"store.search#department/search-result-layout-custom#department/search-result-layout.desktop\\\":{\\\"contentMapId\\\":\\\"tTD1XZbsLxoY3PSiUkRPw6\\\",\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:search-result-layout.desktop.product-comparison#department\\\",\\\"props\\\":{\\\"preventRouteChange\\\":true,\\\"showFacetQuantity\\\":true,\\\"thresholdForFacetSearch\\\":10,\\\"blockClass\\\":\\\"departmentPage\\\"},\\\"implements\\\":[\\\"{{account}}.{{client}}-store-theme@0.x:search-result-layout.desktop.product-comparison\\\",\\\"{{account}}.{{client}}-store-theme@0.x:search-result-layout.desktop\\\",\\\"{{account}}.{{client}}-store-theme@0.x:search-result-layout\\\"]},\\\"store.search#department/search-result-layout-custom#department/search-not-found-layout\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:search-not-found-layout\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.search-result@3.x:search-not-found-layout\\\"]},\\\"store.search#department/$before_header.full/header-layout.desktop/notification-bar-list\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:notification-bar-list\\\",\\\"props\\\":{\\\"notifications\\\":[{\\\"content\\\":\\\"Black Friday a inceput! [Vezi detalii](/black-friday)\\\",\\\"__editorItemTitle\\\":\\\"Black Friday\\\"},{\\\"content\\\":\\\"Program sarbatori actualizat! [Vezi detalii](/program-sarbatori)\\\",\\\"type\\\":\\\"light\\\",\\\"__editorItemTitle\\\":\\\"Holiday Schedule\\\"}]},\\\"implements\\\":[\\\"{{account}}.notification-bar@0.x:notification-bar-list\\\"]},\\\"store.search#department/$before_header.full/header-layout.desktop/toggle-layout#header-banner\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:toggle-layout#header-banner\\\",\\\"props\\\":{},\\\"implements\\\":[\\\"vtex.toggle-layout@0.x:toggle-layout\\\"]},\\\"store.search#department/$before_header.full/header-layout.desktop/flex-layout.row#header-top-menu-desktop\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:flex-layout.row#header-top-menu-desktop\\\",\\\"props\\\":{\\\"colSizing\\\":\\\"auto\\\",\\\"paddingTop\\\":3,\\\"paddingBottom\\\":3,\\\"blockClass\\\":\\\"headerTopMenuDesktop\\\"},\\\"implements\\\":[\\\"vtex.flex-layout@0.x:flex-layout.row\\\",\\\"vtex.flex-layout@0.x:flex-layout\\\"]},\\\"store.search#department/$before_header.full/header-layout.desktop/flex-layout.row#header-main-desktop\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:flex-layout.row#header-main-desktop\\\",\\\"props\\\":{\\\"colSizing\\\":\\\"auto\\\",\\\"paddingTop\\\":4,\\\"paddingBottom\\\":4,\\\"colGap\\\":6,\\\"blockClass\\\":\\\"headerMainDesktop\\\"},\\\"implements\\\":[\\\"vtex.flex-layout@0.x:flex-layout.row\\\",\\\"vtex.flex-layout@0.x:flex-layout\\\"]},\\\"store.search#department/$before_header.full/header-layout.desktop/flex-layout.row#header-menu-desktop\\\":{\\\"blockId\\\":\\\"{{account}}.{{client}}-store-theme@0.x:flex-layout.row#header-menu-desktop\\\",\\\"props\\\":{\\\"colSizing\\\":\\\"auto\\\",\\\"blockClass\\\":\\\"headerMenuDesktop\\\"},\\\"implements\\\":[\\\"vtex.flex-layout@0.x:flex-layout.row\\\",\\\"vtex.flex-layout@0.x:flex-la[...TRUNCATED]",

"headers": {

"Accept": "application/json, text/plain, */*",

"Content-Type": "application/json",

"accept-encoding": "gzip",

"user-agent": "vtex.render-server@8.179.3",

"x-vtex-account": "{{account}}",

"x-forwarded-host": "{{workspace}}--{{account}}.myvtex.com",

"x-vtex-tenant": "ro-RO",

"x-vtex-binding": "eyJpZCI6IjI5MWE4MWM1LTczYmQtNDczMC04NTVkLTg1NzdkMjAwY2Y2MSIsImxvY2FsZSI6InJvLVJPIn0=",

"x-vtex-locale": "ro-RO",

"x-vtex-operation-id": "a6a40898-662e-4b1c-9af6-c9d9f98457df",

"x-vtex-product": "store",

"Content-Length": "3288554"

            },

"method": "get",

"timeout": 6000,

"url": "",

"metric": "pages-page-content",

"params": {}

        },

"request": {

"finished": true,

"method": "GET",

"path": "/vtex.pages-graphql/v2/{{account}}/{{workspace}}/_v/graphql?__graphqlBodyHash=a6b213d0e4e42925a415fca68056203d"

        },

"response": {

"data": {

"errors": [

                    {

"message": "request entity too large",

"stack": "PayloadTooLargeError: request entity too large\n    at readStream (/usr/local/app/node_modules/raw-body/index.js:163:17)\n    at executor (/usr/local/app/node_modules/raw-body/index.js:120:5)\n    at new Promise (<anonymous>)\n    at getRawBody (/usr/local/app/node_modules/raw-body/index.js:119:10)\n    at module.exports (/usr/local/app/node_modules/co-body/lib/json.js:41:21)\n    at parseAndValidateQuery (/usr/local/app/node_modules/@vtex/api/lib/service/worker/runtime/graphql/middlewares/query.js:44:72)\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/time.js:89:19\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/cancel.js:10:15\n    at dispatch (/usr/local/app/node_modules/koa-compose/index.js:42:32)\n    at graphqlUploadKoaMiddleware (/usr/local/app/node_modules/graphql-upload/public/graphqlUploadKoa.js:54:56)\n    at graphqlUploadKoaMiddleware (/usr/local/app/node_modules/@vtex/api/lib/service/worker/runtime/graphql/middlewares/upload.js:11:12)\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/time.js:89:19\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/cancel.js:10:15\n    at dispatch (/usr/local/app/node_modules/koa-compose/index.js:42:32)\n    at graphqlError (/usr/local/app/node_modules/@vtex/api/lib/service/worker/runtime/graphql/middlewares/error.js:48:15)\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/time.js:89:19\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/cancel.js:10:15\n    at dispatch (/usr/local/app/node_modules/koa-compose/index.js:42:32)\n    at response (/usr/local/app/node_modules/@vtex/api/lib/service/worker/runtime/graphql/middlewares/response.js:24:11)\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/time.js:89:19\n    at /usr/local/app/node_modules/@vtex/api/lib/utils/cancel.js:10:15\n    at dispatch (/usr/local/app/node_modules/koa-compose/index.js:42:32)",

"statusCode": 413,

"name": "PayloadTooLargeError",

"extensions": {

"code": "INTERNAL_SERVER_ERROR"

                        },

"forwardedHost": "{{workspace}}--{{account}}.myvtex.com",

"operationId": "a6a40898-662e-4b1c-9af6-c9d9f98457df",

"query": {

"variables": ""

                        },

"requestId": "defabb8fd16440a3ac9eda65e6c272e2"

                    }

                ]

            },

"headers": {

"content-type": "application/json; charset=utf-8",

"date": "Mon, 11 May 2026 13:49:45 GMT",

"server": "VTEX IO",

"cache-control": "no-store, no-cache",

"transfer-encoding": "chunked",

"vary": "Accept-Encoding, x-vtex-locale, x-forwarded-host",

"x-router-cache": "MISS",

"x-request-id": "defabb8fd16440a3ac9eda65e6c272e2",

"x-vtex-router-version": "9.19.0",

"x-vtex-backend-status-code": "RequestEntityTooLarge",

"x-vtex-backend-elapsed-time": "00:00:00.0375055",

"x-vtex-backend": "vtex.pages-graphql@2.125.2",

"x-vtex-router-elapsed-time": "00:00:00.0475915",

"x-vtex-io-cluster-id": "prod-dj-iodev-eks-use1a-d3n"

            },

"status": 413

        },

"status": 413,

"stack": "AxiosError: Request failed with status code 413\n    at settle (/usr/local/app/node_modules/axios/lib/core/settle.js:19:12)\n    at Unzip.handleStreamEnd (/usr/local/app/node_modules/axios/lib/adapters/http.js:793:11)\n    at Unzip.emit (node:events:519:28)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at processTicksAndRejections (node:internal/process/task_queues:82:21)\n    at Axios.request (/usr/local/app/node_modules/axios/lib/core/Axios.js:45:41)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/request/index.js:86:20\n    at routerCacheMiddleware (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/request/index.js:68:5)\n    at notFoundFallbackMiddleware (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/notFound.js:17:5)\n    at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/cache.js:63:20\n    at acceptNotFoundMiddleware (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/notFound.js:13:5)\n    at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/middlewares/inflight.js:33:17"

    }

}