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

Make content_length_limit configurable #24

Merged
merged 2 commits into from
Nov 25, 2023

Conversation

fleupold
Copy link
Contributor

Currently content_length_limit is hardcoded to 16KB, leading to errors of kind

Handling rejection: Rejection(PayloadTooLarge)
unhandled rejection: Rejection(PayloadTooLarge)
INFO ts::api > 127.0.0.1:52125 "POST /api/v1/simulate HTTP/1.1" 500 "-" "curl/7.79.1" 686.917µs

when trying to simulate batched intent beauties like https://etherscan.io/tx/0x8d1feb91a6ca9398607b7f02177b61425b1a64d511fcccb9ef7a60becdde0a7b

This PR adds an optional config value that allows to configure this value and allow processing larger request bodies.

Test Plan

Above mentioned transaction simulates successfully when MAX_REQUEST_SIZE=32

@devanoneth devanoneth merged commit a38f77d into EnsoFinance:main Nov 25, 2023
3 checks passed
@devanoneth
Copy link
Contributor

Thanks for your contribution @fleupold! :)

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