Exit with code 1 due to network error: ContentOperationNotPermittedError

1,095 views
Skip to first unread message

Yves

unread,
Jan 15, 2015, 3:27:24 AM1/15/15
to wkhtmltop...@googlegroups.com
I'm new to wkhtmltopdf and wanted to use it to create a local copy of an article page for archiving. It doesn't work however. Here's what I did:

wkhtmltopdf http://www.dotnetpro.de/dotnetpronews5694.aspx dnp.pdf

This produces the following output - and no PDF file:

Loading pages (1/6)
Warning: Failed to load http://www.googleadservices.com/pagead/conversion.js (ignore)
Warning: Failed to load http://imagesrv.adition.com/js/adition.js (ignore)
Warning: Failed to load http://pagead2.googlesyndication.com/pagead/show_ads.js (ignore)
Warning: Failed to load http://www.google-analytics.com/urchin.js (ignore)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Exit with code 1 due to network error: ContentOperationNotPermittedError

Adding the options '--load-error-handling ignore' or '--load-media-error-handling ignore' does not change this. Is it a bug? The URL can be viewed correctly in a browser on the same machine. It might be our firewall that blocks some spyware, but I'd still not expect the entire process to fail then. I've downloaded it just a moment ago, so it's the current version. Running on Windows 7.

Yves

unread,
Jan 15, 2015, 3:30:32 AM1/15/15
to wkhtmltop...@googlegroups.com
Oh, one more thing: It doesn't create any file. I've retried with another local website and it didn't show any error message. Still there's no file to be found in the current directory. Is Windows eating files written by an "old" application trying to do things it's not allowed to do? (FS virtualisation)

Halim CHAIBI

unread,
May 20, 2016, 1:25:44 PM5/20/16
to wkhtmltopdf General
Hi,
I am running into this issue after upgrading wkhtmltopdf from 0.10.0 rc2 to 0.12.3 (with patched qt). 
Is there any fix or workaroud ?
Thank you.
Reply all
Reply to author
Forward
0 new messages