Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Problem creating a pdf file from icecat live pages #5285

Open
quakef4 opened this issue Dec 12, 2022 · 1 comment
Open

Problem creating a pdf file from icecat live pages #5285

quakef4 opened this issue Dec 12, 2022 · 1 comment

Comments

@quakef4
Copy link

quakef4 commented Dec 12, 2022

Hi,
I had a problem creating a pdf file from icecat live pages.
The reason is that they make use of CORS requests, handled by a webserver with https active.
Unfortunately the conversion requires the download of the html file locally, and this does not allow you to view the page on the generated pdf.

I attach links for the tests:
https://www.antoninolumia.it/test.html

thanks in advance

@quakef4
Copy link
Author

quakef4 commented Dec 12, 2022

response:
user@sistema-server:~$ wkhtmltopdf --javascript-delay 2000 https://www.antoninolumia.it/test.html pdf_condivisa/test.pdfivisa/test.pdf
Loading page (1/2)
qt.network.http2: stream 3 finished with error: "Server stopped accepting new streams before this stream was established"
Error: Failed to load https://live.icecat.biz/js/75.3c0e624b6a0dd6e7930c.js, with network status code 205 and http status code 0 - Server stopped accepting new streams before this stream was established
qt.network.http2: stream 5 finished with error: "Server stopped accepting new streams before this stream was established"
Warning: Failed to load https://live.icecat.biz/js/146e86a7f61108fa48bd.css (ignore)
qt.network.http2: stream 3 finished with error: "Server stopped accepting new streams before this stream was established"
Warning: Failed to load https://live.icecat.biz/js/bead0c0844cfe04f72f3.css (ignore)
qt.network.http2: stream 5 finished with error: "Server stopped accepting new streams before this stream was established"
Error: Failed to load https://live.icecat.biz/api/html?lang=it&content=title205Cessentialinfo205Cmarketingtext205Cmanuals205Creasonstobuy205Creviews205Cfeaturegroups205Cgallery205Cfeaturelogos205Ctours3d205Cvideos205Cproductstory&version=2.0.0&IcecatProductId=18253015&UserName=infobitcomputer&selector=%23Container1205C%23Container2205C%23Container3205C%23Container4205C%23Container5205C%23Container6205C%23Container7205C%23Container8205C%23Container9205C%23Container10205C%23Container11205C%23Container12, with network status code 205 and http status code 0 - Server stopped accepting new streams before this stream was established
Printing pages (2/2)
QPainter::begin(): Returned false
Done
Exit with code 1 due to network error: ContentReSendError

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant