toondaey / nestjs-pdf

Nest js pdf generator
MIT License
80 stars 37 forks source link

Error create buffer #191

Open wuilmerj24 opened 2 years ago

wuilmerj24 commented 2 years ago

When trying to create I get this error: Error: html-pdf: Unknown Error Auto configuration failed 140560640587712:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:362:line 1 at ChildProcess.respond (/*/24/proyectos/p/api/node_modules/html-pdf/lib/pdf.js:134:17) at ChildProcess.emit (node:events:390:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

hannanstd commented 2 years ago

I faced this error today and after searching about node-html-pdf packaged found the solution.

https://stackoverflow.com/questions/60966814/node-html-pdf-auto-configuration-failed

return this.pdfService.toBuffer('test', { childProcessOptions: { env: { OPENSSL_CONF: '/dev/null' } }, });

wuilmerj24 commented 2 years ago

@hannanstd Not work for me

rained23 commented 2 years ago

I faced this error today and after searching about node-html-pdf packaged found the solution.

https://stackoverflow.com/questions/60966814/node-html-pdf-auto-configuration-failed

return this.pdfService.toBuffer('test', { childProcessOptions: { env: { OPENSSL_CONF: '/dev/null' } }, });

this will fail in typescript