mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
447 stars 107 forks source link

WebAPI /api/session/<SESSION_ID>/log?format=<FORMAT> doesn't return full log #550

Closed TripleG closed 1 year ago

TripleG commented 2 years ago

Tried with Postman and with Python's requests module, but the response doesn't contain the full log(tried both json and pretty formats). Response content is ~3MB and it is partial, return status is 200. Python's code:

import requests

x = requests.get('http://localhost:3000/api/session/18191892819/log?format=json');
print(x.text)

If I get it from the Web UI: image the downloaded file is ~25MB and it contains the full log.

adrianth commented 2 years ago

Try to set the responseMaxSize configuration in the server.yaml file. By default it is set to 3145728 (3MB), but you can increase it as necessary. Of course, huge payloads can become a problem, so please be aware of that.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.