subhamX / notion-easy-export

📘 Notion easy export converts your notion documents & databases into an ebook.
https://www.npmjs.com/package/notion-easy-export
Apache License 2.0
63 stars 4 forks source link

Error: Failed loading pages - Host home not found #3

Closed adamczykm closed 2 years ago

adamczykm commented 2 years ago

Excited to see this project!

Unfortunately, I'm getting errors when trying to run it. Below is my output. It feels weird that it tries http://home/user... Do you have any suggestions?

Loading pages (1/6)
Error: Failed to load http://home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/cover/index.html, with network status code 3 and http status code 0 - Host home not found
Error: Failed loading page http:///home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/cover/index.html (sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed to load http://home/.../notion-ebooks/session_files/tmp/tmp.html, with network status code 3 and http status code 0 - Host home not found
Error: Failed loading page http:///home/.../notion-ebooks/session_files/tmp/tmp.html (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: HostNotFoundError
error: main: Error: Command failed: wkhtmltopdf --enable-local-file-access --margin-bottom 10 --margin-top 15 --header-spacing 5 --header-html /home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/header/index.html cover /home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/cover/index.html toc --xsl-style-sheet /home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/toc/styles.xls /home/.../notion-ebooks/session_files/tmp/tmp.html /home/.../notion-ebooks/session_files/output/merged/prime_book.pdf
Loading pages (1/6)
Error: Failed to load http://home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/cover/index.html, with network status code 3 and http status code 0 - Host home not found
Error: Failed loading page http:///home/.../notion-ebooks/node_modules/@subhamx/notion-to-ebook/assets/cover/index.html (sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed to load http://home/.../notion-ebooks/session_files/tmp/tmp.html, with network status code 3 and http status code 0 - Host home not found
Error: Failed loading page http:///home/.../notion-ebooks/session_files/tmp/tmp.html (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: HostNotFoundError
adamczykm commented 2 years ago

Nvm, it is most likely caused by running wkhtml2pdf from docker container :sweat_smile: