N
Novu•17mo 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
Mime
Mime•17mo ago
You need to add a line on your webserver configuration I don't know Which one 😂
vindos
vindosOP•17mo ago
Here`s the log
Mime
Mime•17mo 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•17mo ago
Tried(
Novu_Bot
Novu_Bot•17mo ago
@vindos, you just advanced to level 2!
Mime
Mime•17mo 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•17mo 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(
Mime
Mime•17mo ago
Reduces the template is the only solution if nothing works
vindos
vindosOP•17mo ago
Still need your help, guys... We cant reduce the template(
Pawan Jain
Pawan Jain•16mo 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•16mo 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•16mo ago
And it`s the request being sent
vindos
vindosOP•16mo ago
envs
No description
Dmitry Abramov
Dmitry Abramov•16mo ago
any updates?
Pawan Jain
Pawan Jain•16mo ago
Hi @vindos and @alfa4ok Can you please try with production value of NODE_ENV variable
Dmitry Abramov
Dmitry Abramov•16mo ago
didn't work
Want results from more Discord servers?
Add your server