nestjs-pdf icon indicating copy to clipboard operation
nestjs-pdf copied to clipboard

Error create buffer

Open wuilmerj24 opened this issue 3 years ago • 3 comments

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)

wuilmerj24 avatar Jun 17 '22 02:06 wuilmerj24

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' } }, });

hannanstd avatar Jun 17 '22 12:06 hannanstd

@hannanstd Not work for me

wuilmerj24 avatar Jun 20 '22 16:06 wuilmerj24

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

rained23 avatar Jul 12 '22 14:07 rained23