Exit with code 1 due to network error: UnknownContentError while converting html to pdf #2187
Comments
Bumping having this same issue |
The same here.
|
See: QNetworkReply Class
In #1948 we can read:
However it doesn't solve the problem, because there is no way to ignore such error and continue. Currently it prevents generation of the output file. |
Same problem here =( |
Same here :( |
I hit UnknownContentError as well. It seems like when I reach the 16-18 page mark, with header+footer, it causes the error. I moved my problem into a new issue: #2778 |
I hit this error for a single page without any header or footer and without javascript running. To debug this problem try running the conversion with If the document is large, use
After a review I can "ignore" this problem, since the pdf in question renders fine without the img resource. However I do not want to ignore non-zero return status in a batch invocation of The specific problem described above can be coupled to the load-media-error class.
(using statically compiled |
Yep, I'm getting this error consistently with 0.12.1 and 0.12.3: (EDIT: I mean, it consistently happens hundreds of times when generating thousands of PDFs. It doesn't happen on every PDF)
So I upgraded to 0.13.0-alpha-7b36694 and I'm getting:
Sigh. In both cases the PDF appears to be correctly created. I guess I'll hack my app to ignore error 1 for now... Hoping someone finds a better solution. |
I've had this error happen when using the
I was able to confirm the exact same request worked with jQuery |
We just started receiving this error as well. We're still trying to debug the root cause in our case but passing the |
This happened to me when there was a missing image in the page. One the
|
This error occurs when url are defined as //url... in place of https://url.... Solved for me. |
Anyone know of any way to diagnose which resource is causing the problem? (Using the process of elimination can be very tedious/difficult if the PDF includes a lot of resources, or they're being programmatically included.) |
I have the same error, when it reaches 18 or more pages and including the footer and the header with html with URL, returns this error, and with menas pages it works normally, but until now I could not solve the problem, I give a URL to the footer and the header always returns the error "Exit with code 1 due to network error: UnknownContentError". |
@DionataNunesGarcia me too, large documents seem to cause this error too. |
Same error. there should be an option created for handling this |
What flavor of linux are y'all running? What version of wkhtmltopdf? Is a patched QT version? Do you have openssl & ca-certificates packaged installed? |
is this still an issue on 0.12.5? |
@alloylab I was going to ask. Glad to see that some people want to see this issue out. |
SSL issues were fixed in 0.12.5. It should be also easier to debug the problem, when ContentNotFoundError will appear. |
Closing as there is no response. Please feel free to open a new issue with a complete example if you have some of the problems from this issue. |
I'm seeing this with 12.3 on WSL/Ubuntu 18.04, Windows 1803. When I pull these pages in browser, everything is 200 or 304 as expected. |
Got this error when i tried to create a 70 page pdf. Any possible solution? |
For me, the issue is resolved with 12.4 |
i'm using 0.12.5 version. But still having this issue. Any idea? edit: ubuntu 16.04 |
Same |
This PR will probably solve this issue: |
There is html file:
https://gist.github.com/no1stunna/36637bac02569ad6744e
When i do
There is an error:
Most of the time its working well. But for some generated google urls like this one it throws such an error.
Thanks a lot.
The text was updated successfully, but these errors were encountered: