navjotdhanawat / dynamic-html-pdf

Create dynamic PDF from HTML template using handlebars
MIT License
34 stars 10 forks source link

Error: write EPIPE #17

Closed haraldiikhsan closed 4 years ago

haraldiikhsan commented 4 years ago

When I tested in localhost, it works 100%. But when I deploy my project to server, I got an error. I already install all requirement in Dockerfile, but I still got the error.

npm install fs --save && npm install dynamic-html-pdf --save

Below here, the error I got Error: write EPIPE at afterWriteDispatched (internal/stream_base_commons.js:78:25) at writeGeneric (internal/stream_base_commons.js:73:3) at Socket._writeGeneric (net.js:714:5) at Socket._write (net.js:726:8) at doWrite (_stream_writable.js:415:12) at writeOrBuffer (_stream_writable.js:399:5) at Socket.Writable.write (_stream_writable.js:299:11) at PDF.PdfExec [as exec] (/app/node_modules/html-pdf/lib/pdf.js:141:15) at PDF.PdfToBuffer [as toBuffer] (/app/node_modules/html-pdf/lib/pdf.js:44:8) at Promise (/app/node_modules/dynamic-html-pdf/index.js:40:24) at new Promise (<anonymous>) at Object.module.exports.create (/app/node_modules/dynamic-html-pdf/index.js:25:12) at /app/app/controllers/bookingController.js:939:23 at /app/node_modules/mongoose/lib/model.js:4889:16 at /app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:24:16 at /app/node_modules/mongoose/lib/model.js:4912:21 errno: 'EPIPE', code: 'EPIPE', syscall: 'write' }"