Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

电子书下载pdf 格式报错 #200

Closed
lengyueyang opened this issue Jan 6, 2024 · 1 comment
Closed

电子书下载pdf 格式报错 #200

lengyueyang opened this issue Jan 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lengyueyang
Copy link

lengyueyang commented Jan 6, 2024

Mac系统,应该是打开本地文件报错

正在生成文件:【output/Ebook/115609_打造第二大脑_【美】蒂亚戈·福特.pdf】 pdfg create err: &errors.errorString{s:"Loading pages (1/6)\n[> ] 0%\r[===> ] 5%\r[======> ] 10%\rError: Failed to load file://output/Ebook/cover.html, with network status code 302 and http status code 0 - Request for opening non-local file file://output/Ebook/cover.html\nError: Failed loading page file://output/Ebook/cover.html (sometimes it will work just to ignore this error with --load-error-handling ignore)\n[=============> ] 22%\r[=============> ] 23%\r[==============> ] 24%\r[===============> ] 25%\r[================> ] 27%\r[================> ] 28%\r[=================> ] 29%\r[=====================> ] 36%\r[=============================> ] 49%\r[=================================> ] 55%\rExit with code 1 due to network error: ProtocolInvalidOperationError\n\nexit status 1"}
Error: Loading pages (1/6)
Error: Failed to load file://output/Ebook/cover.html, with network status code 302 and http status code 0 - Request for opening non-local file file://output/Ebook/cover.html
Error: Failed loading page file://output/Ebook/cover.html (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: ProtocolInvalidOperationError

exit status 1
Usage:
dedao-dl dle [flags]

Examples:
dedao-dl dle 123 -t 1

Flags:
-t, --downloadType int 下载格式, 1:html, 2:PDF文档, 3:epub (default 1)
-h, --help help for dle

@yann0917 yann0917 added the bug Something isn't working label Jan 8, 2024
@yann0917 yann0917 changed the title 电子书下载报错 电子书下载pdf 格式报错 Jan 14, 2024
@yann0917
Copy link
Owner

wkhtmltopdf 设置封面时查找相对路径报错,解决方案:改成绝对路径。估计是升级 go-wkhtmltopdf 之后出现的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants