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

add feature to limit the response body size newman can process instead of running out of memory #2632

Open
yusong0926 opened this issue Feb 26, 2021 · 5 comments

Comments

@yusong0926
Copy link

Newman Version (can be found via newman -v): 5.2.0
OS details (type, version, and architecture):
Are you using Newman as a library, or via the CLI? cli
Did you encounter this recently, or has this bug always been there:
Expected behaviour:
Command / script used to run Newman:
Sample collection, and auxiliary files (minus the sensitive details):
Screenshots (if applicable):

@adityaofficial10
Copy link

@yusong0926
Can you elaborate this a little please??

@shamasis
Copy link
Member

Ooh! This will be pretty interesting to implement. The core support needs to be in the stream processing of the postman-request library and then the corresponding configuration needs to be carried from newman via runtime to postman-request.

@codenirvana Thoughts?

@aayushmau5
Copy link

I'm looking into how this can be implemented.

@bendtherules
Copy link

bendtherules commented Nov 1, 2021

Also, importantly --timeout-request <n> doesn't help here because it simply doesn't seem to include the download time for a heavy response. It only works if the server keeps newman waiting for a long time without sending response, but not if it keeps sending a long response.

@ButeoButeo
Copy link

Hi, I'm getting this error, there is any work around for request too large? Thanks!

Error: Server responded to https://............testrail.io/index.php?/api/v2/add_results_for_cases/.. with status code 413:

<title>413 Request Entity Too Large</title>

Request Entity Too Large

The requested resource does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants