Cannot generate PDF

Hi All,
I’ve been keeping up to date with updates, however I’ve recently found that my PDF generation is now failing with a server error:

raceback (most recent call last):
File “/home/tony/frappe-bench/apps/frappe/frappe/app.py”, line 66, in application
response = frappe.api.handle()
File “/home/tony/frappe-bench/apps/frappe/frappe/api.py”, line 56, in handle
return frappe.handler.handle()
File “/home/tony/frappe-bench/apps/frappe/frappe/handler.py”, line 32, in handle
return build_response(“json”)
File “/home/tony/frappe-bench/apps/frappe/frappe/utils/response.py”, line 50, in build_response
KeyError: u’pdf’
Status: 500

I’ve searched but I seem to be the only person with this issue. Can anyone point me at where to look and how to debug this

wkhtmltopdf runs to generate the pdf file.

A search here on that will land you pointers how to test confirm that command works

1 Like

Probably https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3923

Try:

sudo apt install libssl1.0-dev

Else, read up on updating to the latest version.

1 Like

Thanks guys! One of these two things fixed it…
UBUNTU 14.04

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
dpkg --install wkhtmltox_0.12.5-1.trusty_amd64.deb
sudo apt-get install libssl1.0
bench restart