Hi i got erpnext v16.1.0 when i try to send email with attachment get issues
Traceback (most recent call last):
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 186, in send
message = ctx.build_message(recipient.recipient)
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 336, in build_message
message = self.include_attachments(message)
File “apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 413, in include_attachments
print_format_file = frappe.attach_print(**attachment)
File “apps/frappe/frappe/utils/print_utils.py”, line 144, in attach_print
else get_print(doctype, name, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/utils/print_utils.py”, line 103, in get_print
return get_pdf(html, options=pdf_options, output=output)
File “apps/frappe/frappe/utils/pdf.py”, line 99, in get_pdf
filedata = pdfkit.from_string(html, options=options or {}, verbose=True)
File “env/lib/python3.14/site-packages/pdfkit/api.py”, line 75, in from_string
return r.to_pdf(output_path)
~~~~~~~~^^^^^^^^^^^^^
File “env/lib/python3.14/site-packages/pdfkit/pdfkit.py”, line 201, in to_pdf
self.handle_error(exit_code, stderr)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File “env/lib/python3.14/site-packages/pdfkit/pdfkit.py”, line 155, in handle_error
raise IOError(‘wkhtmltopdf reported an error:\n’ + stderr)
OSError: wkhtmltopdf reported an error:
Exit with code 1 due to network error: ProtocolUnknownError