Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: size of email content "too large" #2680

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

ainouzgali
Copy link
Contributor

What change does this PR introduce?

The 20mb was only applied to event trigger - not for the broadcast, test email or to save and update the email content.

Why was this change needed?

Other information (Screenshots)

@linear
Copy link

linear bot commented Feb 5, 2023

NV-1580 Unable to send email if email content size is large

When email content is large, trigger fails with error request entity too large.

One workaround is to use minified content, but it is not always a good solution.

Expectation:- Size limit should be increased and exact value should be mentioned in docs.

@ghost
Copy link

ghost commented Feb 5, 2023

👇 Click on the image for a new way to code review
  • Make big changes easier — review code in small groups of related files

  • Know where to start — see the whole change at a glance

  • Take a code tour — explore the change with an interactive tour

  • Make comments and review — all fully sync’ed with github

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

Comment on lines +72 to +73
app.use(extendedBodySizeRoutes, bodyParser.json({ limit: '20mb' }));
app.use(extendedBodySizeRoutes, bodyParser.urlencoded({ limit: '20mb', extended: true }));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to double check, is this syntax allowed in nestjs? Not sure I have seen it elsewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the array of routes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works @scopsy :)

@ainouzgali ainouzgali merged commit 75a9dbc into next Feb 6, 2023
@ainouzgali ainouzgali deleted the nv-1580-unable-to-send-email-if-email-content branch February 6, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants