N
Novu•2y ago
vindos

Request entity too large error

Hey guys! Have some problems with self-hosted novu. While trying to lode up a email html template got {"statusCode":413,"message":"request entity too large"} The template weights 106kbs But, it works in the cloud novu web.novu.co Where can we look for the problem? Ty for answer)
17 Replies
mime4x
mime4x•2y ago
You need to add a line on your webserver configuration I don't know Which one 😂
vindos
vindosOP•2y ago
Here`s the log
mime4x
mime4x•2y ago
Search entity too large 413 <your webserver> well With your logs Seems like your payload is too large The template You can try to minify the template This May help you #Send large HTML as payload in the trigger event
vindos
vindosOP•2y ago
Tried(
Novu_Bot
Novu_Bot•2y ago
@vindos, you just advanced to level 2!
mime4x
mime4x•2y ago
If it works in the cloud I think it's most likely your webserver configuration or the novu configuration maybe idk never used novu self-hosted <#1072767323619995689> similar <#1074826866411716730>
vindos
vindosOP•2y ago
Yep, but seems like {"statusCode":413,"message":"request entity too large"} is not nginx`s answer. And the payload weight seems to be hardcoded in api/src. So i dont know where to look for the problem(
mime4x
mime4x•2y ago
Reduces the template is the only solution if nothing works
vindos
vindosOP•2y ago
Still need your help, guys... We cant reduce the template(
Pawan Jain
Pawan Jain•2y ago
Hi @vindos I have few questions to understand your issue:- 1. If you are self hosting novu, what is your novu version? 2. Have you configured storage services like s3 properly? 3. What are the steps in your workflow? 4. By The template weights 106kbs , you mean template content size in 106KB? 5, What are you sending in payload? any attachment?
vindos
vindosOP•2y ago
1. 16.4 2. no storages 3. trigger -> digest -> email 4. Yes, 106 KB of html 5. No, just html, no attachments, no images There is our compose and envs
vindos
vindosOP•2y ago
And it`s the request being sent
vindos
vindosOP•2y ago
envs
No description
Dmitry Abramov
Dmitry Abramov•2y ago
any updates?
Pawan Jain
Pawan Jain•17mo ago
Hi @vindos and @alfa4ok Can you please try with production value of NODE_ENV variable
Dmitry Abramov
Dmitry Abramov•17mo ago
didn't work
Want results from more Discord servers?
Add your server