ResponseToFile-Postman icon indicating copy to clipboard operation
ResponseToFile-Postman copied to clipboard

Postman is crashing if API has large response data

Open satishdabilpur opened this issue 4 years ago • 3 comments

Seems like this script is not working for the API with large response data. Do you have any ideas on how to do this for large response data like 500mb?

satishdabilpur avatar Jun 08 '21 14:06 satishdabilpur

@satishdabilpur Try updating the limits in the script.js file:

// Change the limits according to your response size
app.use(bodyParser.json({limit: '1024mb', extended: true}));
app.use(bodyParser.urlencoded({ limit: '1024mb', extended: true })); 

sivcan avatar Jun 11 '21 15:06 sivcan

No luck, I think the JS code on Postman tests are not handling correctly as the postman application crashes abruptly. If we remove the Tests in Postman, API works fine. Does Transfer-Encoding: Chunked would make any difference?

satishdabilpur avatar Jun 11 '21 17:06 satishdabilpur