Collection Runner Stops When on a Request That Loads a File

Hi,

I have a collection of endpoints. I can run each one separately without issue.

Well, there are some endpoints that download/load a 200Mb file. When I send a request for such an endpoint by itself I get a “Could not get response”, “Error: Maximum response size reached” sequence of errors.

So when I run a collection and hit these endpoints, the collection runner stops and the run doesn’t progress. I am not interested in downloading the file, I just want to grab the status code i.e. would it be 200

I have seen a few references to Newman and some packages but they are 4 years old. Is there anything more recent that can help?

So, I used Write Responses To File and it looks ok. However, on large zip files (185Mb), in the console, I am getting an error in the console saying

RangeError: Invalid array length

Any suggestions?

It’s nothing to do with the other script. Even if I use a simple test, it still errors i.e.

pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});

Hi @security-physicist-4. If you navigate to your settings tab. Under “General”, you can specify the maximum response size you want to receive in Postman. If you specify “0”, you can receive any response size.

That is already set and the files can be downloaded but as soon as I put a test in, the console shows errors, so it’s the combination of a large file and a test

1 Like

@security-physicist-4. I’m following up with this internally to see what could be the issue in your specific scenario. More soon.

1 Like

Thank you. If it helps, I setup a new request to download a 200Mb file from http://xcal1.vodafone.co.uk/, specifically, http://212.183.159.230/200MB.zip

I have a Post-response script of:

pm.test("Response time is less than 200ms", function () {
    pm.expect(pm.response.responseTime).to.be.below(200);
});

The console then shows the following (I am ok with the amber warning):

Hi @security-physicist-4. I am not able to replicate this behavior on my end. It takes a significant time, and I have a test in the request. But I do get a 200 OK and no errors.

Happy to jump on a call to further investigate this issue if you’re up for that.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.