Throw error explicitly using the callback instead of failing due to "Cannot read property 'filename' of undefined"#643
Conversation
…ng due to "Cannot read property 'filename' of undefined" (#1)
|
@omrilit Hii , I am also facing the same issue on the version 3.0.1, Is there any fix for this , Thanks in advance |
@jagadeesh93 not that I am aware of. I've just forked the repo and added this PR's content. You can see it at https://github.com/salto-io/node-html-pdf |
barakplasma
left a comment
There was a problem hiding this comment.
This one line change looks good to me. We've also been experiencing this issue on a regular basis since upgrading to v3.0.1
|
I have a suspicion that this bug might be caused by phantomjs failing but html-pdf not catching it and counting on there being a file when there isn't one. PR 644 might solve this issue |
|
For a patch in the meanwhile, see #644 (comment) . I'm going to rollout the patch in prod, ping me later if you're interested in whether it solved the issue for me. |
|
@barakplasma it would be great if you could write here if it worked for you. |
No description provided.