Kann mir jemand sagen, wie ich die folgenden Probleme beheben kann?Wie behandelt man ContentNotFoundError bei der Verwendung von wkhtmltopdf?
wkhtmltopdf haben keine Option Proxy-Informationen zu übergeben (-p oder --proxy) anders als in früheren Versionen und es ist nicht mit System $ http_proxy und zu $ https_proxy env Variable.
wkhtmltopdf arbeiten nicht mit HTTPS/SSL, obwohl ich LD_LIBRARY_PATH für libssl.so gesetzt und libcrypto.so
[[email protected] ~]$ wkhtmltopdf https://www.google.co.in google.pdf loaded the Generic plugin Loading page (1/2) Error: Failed loading page https://www.google.co.in (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: UnknownNetworkError
und
[[email protected] ~]$ wkhtmltoimage https://www.google.co.in sample.jpg loaded the Generic plugin Loading page (1/2) Error: Failed loading page https://www.google.co.in (sometimes it will work just to ignore this error with --load-error-handling ignore) Exit with code 1 due to network error: UnknownNetworkError
wkhtmltopdf teilweise mit HTTP arbeiten. Die Ausgabe-PDF-Dateien fehlen einige Inhalt/Hintergrund/Positionen.
[[email protected] ~]$ wkhtmltopdf http://localhost:8880/ sample.pdf loaded the Generic plugin Loading page (1/2) Printing pages (2/2) Done Exit with code 1 due to network error: ContentNotFoundError [[email protected] ~]$ wkhtmltoimage http://localhost:8880/ sample.jpg loaded the Generic plugin Loading page (1/2) Rendering (2/2) Done Exit with code 1 due to network error: ContentNotFoundError
Hinweis: Im mit wkhtmltopdf-0.12.1-1.fc20.x86_64 und qt-4.8.6-10.fc20.x86_64
Diese wirklich klingen wie Bugs, die am besten von Ashkulz im Github Issue Tracker beantwortet werden würden, ich denke, dein bestes Glück wird dort fragen. – Nenotlep
Siehe: [Exit mit Code 1 wegen Netzwerkfehler: ContentNotFoundError # 2051] (https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2051) – kenorb