Exits with error code 1, but no message in stderr

533 views
Skip to first unread message

Adam Morris

unread,
Jan 26, 2015, 6:47:03 AM1/26/15
to wkhtmltop...@googlegroups.com
I have a few dynamically-generated HTML/CSS code that worked great but then some that didn't, and of those that didn't all of them return this:

  File "/home/vagrant/pyenv/versions/igbisportal/lib/python2.7/site-packages/pdfkit/pdfkit.py", line 119, in to_pdf
    raise IOError("wkhtmltopdf exited with non-zero code {0}. error:\n{1}".format(exit_code, stderr.decode("utf-8")))
IOError: wkhtmltopdf exited with non-zero code 1. error:


There is no error message, any tips on how to debug this?
I suspected maybe an encoding problem?

I'm using pdfkit.from_string where the string is rendered from a chameleon template. Like I said, some work great, others don't, and I can't figure out a pattern. Would help if I had an error message??

Adam

Jamie Starke

unread,
Dec 22, 2015, 2:17:52 PM12/22/15
to wkhtmltopdf General
I have the exact same problem, but it seems to be periodic. I can take the same content and render it sometimes, and get this error, then come back a minute later and everything is fine.
Reply all
Reply to author
Forward
0 new messages