-
Bug
-
Resolution: Done
-
Normal
-
None
When the PDF generator has more than 40 slices (essentially pagination calls), the download call fails with the error:
"@smithy/node-http-handler:WARN socket usage at capacity=50 and 190 additional requests are enqueued. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config."
The PDF generates correctly, but the download will fail since all the slices need to be pulled down from S3 to be merged. The fix here is to update our S3 client config to handle more than 50 connection. I think 300 is probably a good upper limit since this is already a massive amount of data.
https://stackoverflow.com/a/77916255 is a good example of what needs to be updated in the object store file https://github.com/RedHatInsights/pdf-generator/blob/main/src/common/objectStore.ts#L41