Szpadel/chrome-headless-render-pdf

Hangs when running on Ubuntu with Chrome 64

ijdickinson opened this issue · 4 comments

I don't seem to be able to get chrome-headless-render-pdf to do anything other than hang. This is what I get for a variety of normal and localhost (my actual use case) web sites:

$ npx chrome-headless-render-pdf --url 'https://news.bbc.co.uk' --pdf ./output.pdf --chrome-binary=/usr/bin/chromium-browser
Using /usr/bin/chromium-browser
Waiting for chrome to became available
Connected!
Opening https://news.bbc.co.uk
^C

I let it set there for a couple of minutes before killing it. Is there anything I can do to get more diagnostics, to see what's going on?

System info:

  • Ubuntu 17.10
  • Chromium 64.0.3282.140 (Official Build) Built on Ubuntu , running on Ubuntu 17.10 (64-bit)
  • node -v # => v8.9.4
  • grep pdf package.json # => "chrome-headless-render-pdf": "^1.5.0",

Thanks for reporting, I was able to reproduce this issue.
i'll try to find root cause of that.

Hello, this seems to be chrome issue: https://bugs.chromium.org/p/chromium/issues/detail?id=768961
It is present only with chrome/chromium 64
Upgrading to 65 seems to solve this issue

OK, thanks, will do

For anyone who visits this seeing the same problem long after the fix described above, check which addresses / ports the processes are listening on and connecting to - because the symptoms if they're different are almost identical to those described above. In my case, it was listening on an IPv4 localhost (127.0.0.1) and trying to connect on an Ipv6 one (::1)