I am trying to import a 3,2mb JSON file and was running into two issues:
"413 Request entity too large"
"Failed: Payload too large"
My NGINX is configured in reverse proxy, so I've set client_max_body_size 200M;in /etc/nginx/nginx.conf. Refering to this documentation, changed config/middleware.js to:
module.exports = (strapi) => { return { settings: { parser: { enabled: true, multipart: true, formLimit: "500mb", jsonLimit: "200mb", formidable: { maxFileSize: 524288000, }, }, }, }; };
That solved the above issues but still I'm getting an error Failed to load resource: the server responded with a status of 409 (Conflict) at import:1. Interesting though some entities still get imported, but the error appears to happen at around 147/148. I would exclude the file as a possible problem as I've successfully imported the file in local production.
Hello everyony,
I am trying to import a 3,2mb JSON file and was running into two issues:
My NGINX is configured in reverse proxy, so I've set
client_max_body_size 200M;
in/etc/nginx/nginx.conf
. Refering to this documentation, changedconfig/middleware.js
to:module.exports = (strapi) => { return { settings: { parser: { enabled: true, multipart: true, formLimit: "500mb", jsonLimit: "200mb", formidable: { maxFileSize: 524288000, }, }, }, }; };
That solved the above issues but still I'm getting an error
Failed to load resource: the server responded with a status of 409 (Conflict)
atimport:1
. Interesting though some entities still get imported, but the error appears to happen at around 147/148. I would exclude the file as a possible problem as I've successfully imported the file in local production.Any help appreciated!
Thanks & best regards, Max