0

I ran into an error when where I don't have internet connection to the outside and the mobsf is hosted remotely using a domain name, what could be the issues based on the error below?

Traceback (most recent call last):
  File "/mobsf/StaticAnalyzer/views/common/pdf.py", line 135, in pdf
    pdf_dat = pdfkit.from_string(html, False, options=options)
  File "/venv/lib/python3.8/site-packages/pdfkit/api.py", line 75, in from_string
    return r.to_pdf(output_path)
  File "/venv/lib/python3.8/site-packages/pdfkit/pdfkit.py", line 201, in to_pdf
    self.handle_error(exit_code, stderr)
  File "/venv/lib/python3.8/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: HostNotFoundError
A O
  • 1
  • 3
  • 1
    Whatever you mean by "the mobsf": can you share more details, like the code involved, such that others can try to reproduce the problem? Is this even related to programming? – Nico Haase Aug 25 '23 at 09:53

0 Answers0