Open ZBilel opened 4 years ago
Faced same issuse on WSL, but worked fine on Windows machine.
This was happening to me too on WSL. I managed to make it work with #531 .
I basically created an empty file in /tmp/openssl.cnf
and then added an environment variable called OPENSSL_CONF
pointing to that file.
export OPENSSL_CONF=/tmp/openssl.cnf
and then I stopped & started my node server.
Obviously in a production environment you would have to properly configure openssl if you are using it.
me too , i got same error
Error: html-pdf: Received the exit code '1'
Auto configuration failed
139907094650688:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
139907094650688:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139907094650688:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
139907094650688:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf
at ChildProcess.respond (/var/www/html/nodeJS/node-js-jwt-auth/node_modules/html-pdf/lib/pdf.js:121:31)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
I found the same solve. https://github.com/wernight/docker-phantomjs/blob/master/latest/Dockerfile#L32-L35 Thank's @bvisonl
Same issue any update?
Same issue, does somebody knows how to fix it?
ENV OPENSSL_CONF=/etc/ssl/
solved this issue for me in containerized environment. Source: https://gist.github.com/julionc/7476620?permalink_comment_id=3877488#gistcomment-3877488
I'm trying to build a simple pdf using this code :
but I get this error message
the running environment is os : Ubuntu 18.04.3 LTS node : v8.10.0 html-pdf : latest