Request Entity Too Large
Are there limitations on uploading variants in Novu? I'm developing an email workflow with 21 variants, each template being 1.6 KB in size. However, I'm encountering an error when trying to create more than 5 variants, specifically "request entity too large." Can you explain this error and suggest a solution?
7 Replies
@Puvi Are you getting this error while saving the workflow or variants
or when you trigger the workflow
Hi @Pawan Jain, I'm getting this errors while saving variants
@Gali Baum How are we storing varients in the database?
@Zac Clifton we are storing them like all steps, they are each saved as a step (message template entity)
But I believe this error is because the entity send - the request to the update endpoint is limited in size
20mb I believe
Hi @Gali Baum Please find the attached image
Also I tried in local setup, I can able to create more then 5 variants .Facing this issue only in self hosted servers
Hello Team,
I've encountered an issue that I can replicate locally by removing the following lines:
app.use(extendedBodySizeRoutes, bodyParser.json({ limit: '20mb' }));
app.use(extendedBodySizeRoutes, bodyParser.urlencoded({ limit: '20mb', extended: true }));
To address this, I've set these values globally as follows:
app.use(bodyParser.json({ limit: '20mb' }));
app.use(bodyParser.urlencoded({ limit: '20mb', extended: true }));
This change resolves the issue locally, but when deploying to production, the problem persists.
I expect that setting these values should handle the error, or at least the global setting should rectify it, but unfortunately, this isn't the case.
Could you please assist in identifying the issue?
Thank you.
cc @Pawan Jain , @Gali Baum