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

Error: Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown #5274

Open
igordeveloper opened this issue Nov 17, 2022 · 0 comments

Comments

@igordeveloper
Copy link

igordeveloper commented Nov 17, 2022

Hello.

I'm trying convert a html(generated from a email) to pdf that contains the follow element.

<link href="//fonts.googleapis.com/css?family=Google+Sans" rel="stylesheet" type="text/css" nonce="G-DeBRxWFwe6Nl7vG5bC_A"/>

When i execute wkhtmltopdf to convert I'm receiving this error:

Loading pages (1/6)
Warning: Blocked access to file                                
Error: Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown
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: ProtocolUnknownError

Follow command used:
wkhtmltopdf --image-dpi 150 --lowquality --disable-internal-links --disable-external-links --disable-local-file-access test.html test.pdf

Version installed:
wkhtmltopdf 0.12.6.1 (with patched qt)

Looks that wkhtmltopdf is interpreting this element as a file even if I disabled the reading of internal files in the command.

Could you please help me how can I solve this error.

Thank you.
igor.

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