{"action":"created","issue":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/222","repository_url":"https://api.github.com/repos/marcbachmann/node-html-pdf","labels_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/222/comments","events_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/222/events","html_url":"https://github.com/marcbachmann/node-html-pdf/issues/222","id":202096581,"number":222,"title":"Error: html-pdf: PDF generation timeout. Phantom.js script did not exit.","user":{"login":"commander007","id":25243797,"avatar_url":"https://avatars1.githubusercontent.com/u/25243797?v=4","gravatar_id":"","url":"https://api.github.com/users/commander007","html_url":"https://github.com/commander007","followers_url":"https://api.github.com/users/commander007/followers","following_url":"https://api.github.com/users/commander007/following{/other_user}","gists_url":"https://api.github.com/users/commander007/gists{/gist_id}","starred_url":"https://api.github.com/users/commander007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commander007/subscriptions","organizations_url":"https://api.github.com/users/commander007/orgs","repos_url":"https://api.github.com/users/commander007/repos","events_url":"https://api.github.com/users/commander007/events{/privacy}","received_events_url":"https://api.github.com/users/commander007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-20T09:47:16Z","updated_at":"2018-04-06T07:48:18Z","closed_at":null,"author_association":"NONE","body":"throws this error while genrating pdf using node.js on sails framework. Previously the same code was working fine, but have been getting this error since last 3 days.\r\n\r\nvar pdf = require('html-pdf');\r\n\r\nvar options = {\r\n                \"format\":\"Letter\" ,\r\n                \"orientation\": \"portrait\",\r\n                \"footer\":{\r\n                    \"height\":\"15mm\"\r\n                },\r\n                \"quality\": \"75\",\r\n                \"type\":\"pdf\",\r\n                \"timeout\":60000\r\n            };\r\n            var file = 'assets/templates/invoice.ejs'\r\n            var html = ejs.render(fs.readFileSync(file, 'utf8'),{ 'data': params.data });\r\n            pdf.create(html,options).toFile('././invoice/' + params.title  + '.pdf', function(err, result) {\r\n                if (err) {\r\n                    return console.log(\"err\", err);\r\n                }\r\n                if (callback != undefined) {\r\n                    return callback(null, { 'fileName':params.title  + '.pdf'});\r\n                }\r\n                  return res.json({ 'fileName':params.title  + '.pdf'});\r\n            });\r\n\r\n\r\nI have already checked all the parameters and data being passed. "},"comment":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/comments/379175943","html_url":"https://github.com/marcbachmann/node-html-pdf/issues/222#issuecomment-379175943","issue_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/222","id":379175943,"user":{"login":"JohneSchwoopf","id":36716531,"avatar_url":"https://avatars3.githubusercontent.com/u/36716531?v=4","gravatar_id":"","url":"https://api.github.com/users/JohneSchwoopf","html_url":"https://github.com/JohneSchwoopf","followers_url":"https://api.github.com/users/JohneSchwoopf/followers","following_url":"https://api.github.com/users/JohneSchwoopf/following{/other_user}","gists_url":"https://api.github.com/users/JohneSchwoopf/gists{/gist_id}","starred_url":"https://api.github.com/users/JohneSchwoopf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohneSchwoopf/subscriptions","organizations_url":"https://api.github.com/users/JohneSchwoopf/orgs","repos_url":"https://api.github.com/users/JohneSchwoopf/repos","events_url":"https://api.github.com/users/JohneSchwoopf/events{/privacy}","received_events_url":"https://api.github.com/users/JohneSchwoopf/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T07:48:18Z","updated_at":"2018-04-06T07:48:18Z","author_association":"NONE","body":"I do have also the same problem using this library in Cloud Functions"}}
{"actor":{"display_login":"JohneSchwoopf"}}