Hello, I come to you today for some help with a bug that I have no idea how to solve. I'm looking for general advice more than a solution, hence the lack of example.I wrote a cli that generates a batch of both pdfs and eml files with the same pdf attached. It does so bygenerating the pdf, which creates a streampiping the pdf stream in a write stream to write the pdf to diskpassing the pdf stream to nodemailer as an attachment and write an eml to disk with the stream transportIt worked pretty well for the past 2 years at least. But recently the pdf in the attachment is missing the last few kilobytes in some of the generated emails (producing a corrupted file), while the pdf file on disk is OK.It's not really reproducible as it corrupts files seemingly randomly between execution. Nothing changed in the software or in the workload, but the cli used to run on the client's laptop and since recently is ran on a vps.I'm at loss on what to do to find exactly what's going on, any ideas welcome.
Submitted July 02, 2020 at 07:25PM by EdTheOtherNerd
No comments:
Post a Comment