Skip to content

PDF is occasionally empty #24

@juergengunz

Description

@juergengunz

I have this weird issue, that the PDF is sometimes empty but the HTML render is not. HTML rendering is always working like expecting. Any known issues about that?

 myInvoice.toHtml("./public/invoices/"+result._id+".html", (err, data) => {
          console.log(err);
           console.log("Saved HTML file");
       }).toPdf("./public/invoices/"+result._id+".pdf", (err, data) => {
         console.log(err);

           console.log("Saved pdf file");
});

this is the error:
{ Error: connect ECONNREFUSED 127.0.0.1:57086 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 57086 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions