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/”, line 66, in application
response = frappe.api.handle()
File “/home/tony/frappe-bench/apps/frappe/frappe/”, line 56, in handle
return frappe.handler.handle()
File “/home/tony/frappe-bench/apps/frappe/frappe/”, line 32, in handle
return build_response(“json”)
File “/home/tony/frappe-bench/apps/frappe/frappe/utils/”, 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 Exit with code 1 due to network error: UnknownNetworkError · Issue #3923 · wkhtmltopdf/wkhtmltopdf · GitHub


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

dpkg --install wkhtmltox_0.12.5-1.trusty_amd64.deb
sudo apt-get install libssl1.0
bench restart