carbonblack / carbon-black-cloud-sdk-python

VMware Carbon Black Cloud Python SDK
MIT License
40 stars 23 forks source link

[BUG] 413 HTTP response returned when uploading large files via LiveResponse #543

Open 7a6570 opened 2 weeks ago

7a6570 commented 2 weeks ago

I am seeing this behaviour on:

Describe the bug When uploading large files to endpoints via LiveResponse, a HTTP 413 response is returned from the backend:

<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>

Steps to Reproduce

Upload a large file (e.g. 40MB) to an endpoint using the cbc sdk:

with endpoint.lr_session() as lr_session:
  lr_session.put_file(fp, dest_path)

Expected behavior Until recently, it was possible to upload a 40MB file to clients using the cbc SDK.

7a6570 commented 1 week ago

I did some additional testing: if the file is smaller than 1MB, the upload still works, otherwise it fails returning the HTTP 413 header. Uploading the large file (40MB) via browser seems to work though. Can you please into this issue ? thx