Open cod opened 2 years ago
Hello @cod I'm currently facing the same issue. Did you manage to solve the problem? If so, how did you do it? Thank you very much!
Hi @manueljishi Unfortunately, all my tries failed and I've switched to @ricktechs/nestjs-puppeteer
Hi @cod, that sounds really bad haahaha. I'll have to start thinking about changing. Thank you very much
Use this library in RabbitMQ consumer app and faced with simultaneous PDF Docs generation problem:
Request for 3 docs producess this: Doc 1. started Doc 2. started Doc 3. started
Doc 3. done successfully Doc 2. [Nest] 811334 - 06/06/2022, 1:12:07 PM ERROR [RpcExceptionsHandler] ENOENT: no such file or directory, open '/tmp/html-pdf-811334.pdf' Doc 1. [Nest] 811334 - 06/06/2022, 1:12:07 PM ERROR [RpcExceptionsHandler] ENOENT: no such file or directory, open '/tmp/html-pdf-811334.pdf'
As I understand, this is the problem: in lib/pdf.default.ts
Think using random name for each file will solve the problem.