-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw error explicitly using the callback instead of failing due to "Cannot read property 'filename' of undefined" #643
base: master
Are you sure you want to change the base?
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.