N
Novu10mo ago
Puvi

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
Pawan Jain
Pawan Jain10mo ago
@Puvi Are you getting this error while saving the workflow or variants or when you trigger the workflow
Puvi
PuviOP10mo ago
Hi @Pawan Jain, I'm getting this errors while saving variants
Zac Clifton
Zac Clifton10mo ago
@Gali Baum How are we storing varients in the database?
Gali Baum
Gali Baum10mo ago
@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
Puvi
PuviOP10mo ago
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
No description
Puvi
PuviOP10mo ago
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
Want results from more Discord servers?
Add your server