-
Notifications
You must be signed in to change notification settings - Fork 49
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
unhandled rejection: Rejection(PayloadTooLarge) #10
Comments
Could we get a full backtrace? I have a feeling that this may be something to do with the HTTP server. |
Yea it's most likely the http server, I thought warp was what was being used so tried to change a few things there . This is all I get in the API logs :
|
Hey, it's set here: https://github.com/EnsoFinance/transaction-simulator/blob/main/src/lib.rs#L102 Would be open to a PR which makes it configurable with an env var :) |
@devanoneth thanks for this, I can see it now in the last line ! Sadly I don't code in RUST , hopefully someone will do it |
Fixed in #24 |
First of all I need to say I have no idea if this simulator is a viable option for handling a high amount of txs in a short period of time (in a single request), let's say anything between 200 and 500 txs for a given block .
Having said that, there is a payload size limit for the server accepting the curl requests and the bottleneck is reached quite easily so simulating anything like even 50 transactions in a single request is impossible .
I tried modifying warp to accomodate for bigger payload but kept getting the same error .
unhandled rejection: Rejection(PayloadTooLarge)
Where could we modify the maximum payload size please ?
Thanks
The text was updated successfully, but these errors were encountered: