I’m facing an issue while downloading a Print Format(Chrome) as PDF in Frappe.
When I try to download the PDF, it fails with the following error:
TimeoutError: Chromium took too long to start.
Full Traceback:
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 121, in application
response = frappe.api.handle(request)
File "apps/frappe/frappe/api/__init__.py", line 63, in handle
data = endpoint(**arguments)
File "apps/frappe/frappe/api/v1.py", line 40, in handle_rpc_call
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 53, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/utils/print_format.py", line 240, in download_pdf
pdf_file = frappe.get_print(...)
File "apps/frappe/frappe/utils/pdf_generator/chrome_pdf_generator.py", line 218, in _set_devtools_url
raise TimeoutError("Chromium took too long to start.")
TimeoutError: Chromium took too long to start.