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

Increase default body parser size #471

Merged
merged 6 commits into from
Feb 23, 2024
Merged

Increase default body parser size #471

merged 6 commits into from
Feb 23, 2024

Conversation

tschoffelen
Copy link
Contributor

@tschoffelen tschoffelen commented Oct 21, 2023

WHY are these changes introduced?

An issue I come across occasionally is a webhook payload that is rejected due to a "HTTP:413 Request Entity Too Large" error. This is due to the body-parser limit by default being set to 100kb.

WHAT is this pull request doing?

This PR introduces a new default value for this, which should alleviate this issue.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have used yarn changeset to create a draft changelog entry (do NOT update the CHANGELOG.md files manually)
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

Notes

I'm unsure if any tests need to be added for this change - please do let me know if you have an idea of how you'd like to see this tested.

@tschoffelen tschoffelen requested a review from a team as a code owner October 21, 2023 13:08
@tschoffelen
Copy link
Contributor Author

I have signed the CLA!

@tschoffelen tschoffelen marked this pull request as draft October 21, 2023 13:12
@tschoffelen tschoffelen marked this pull request as ready for review October 21, 2023 13:12
Copy link
Contributor

@lizkenyon lizkenyon left a comment

Choose a reason for hiding this comment

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

Hey @tschoffelen
We would like to get this merged! Could you add a changeset for this!

@tschoffelen tschoffelen requested a review from lizkenyon January 15, 2024 09:18
@tschoffelen
Copy link
Contributor Author

Is this one ready to get merged @lizkenyon, or is there anything more I need to do?

@lizkenyon lizkenyon merged commit bb2c5ff into Shopify:main Feb 23, 2024
6 checks passed
@lizkenyon
Copy link
Contributor

Sorry I missed your ping @tschoffelen

Merging now. Thank you for your contribution! It is highly appreciated 😄

@tschoffelen tschoffelen deleted the patch-1 branch February 26, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants