You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: