I'm using Laravel 5.7 and each time I try to generate a pdf file using laravel-snappy package I get this error message: Exit with code 1 due to network error: ContentOperationNotPermittedError
My OS is Windows 10.
On other SO questions and github's issues it's pointed out that this issue may be caused by relative paths on css files but on my blade.php tamplate I do not have any external source, all the css code is written inline.
This is the fullstack trace:
The exit status code '1' says something went wrong:
stderr: "Loading pages (1/6)
[> ] 0%[======> ] 10%QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files ◀
[==========> ] 18%\rWarning: Failed to load c:/Program Files (x86)/EasyPHP-Devserver-17/eds-www/gestion/public/s ▶
Error: Failed to load c:/Program Files (x86)/EasyPHP-Devserver-17/eds-www/gestion/public, with network status code 202 and http status code 0 - Cannot open c:/P ▶
[============================================================] 100%Counting pages (2/6)
[============================================================] Object 1 of 1Resolving links (4/6)
[============================================================] Object 1 of 1Loading headers and footers (5/6)
Printing pages (6/6)
[> ] Preparing[============================================================] Page 1 of 1Done ◀
Exit with code 1 due to network error: ContentOperationNotPermittedError
"
stdout: ""
command: "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" --lowquality --orientation "landscape" --page-size "a4" --encoding "UTF-8" --enable-local-file-access "C:\Users\USER\AppData\Local\Temp\knp_snappy61279300ad2dd5.53480707.html" "C:\Users\USER\AppData\Local\Temp\knp_snappy61279300ad71c6.09845744.pdf". ◀
"""
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3mBLdxE
via IFTTT
Aucun commentaire:
Enregistrer un commentaire